Skip to content

About

Fetching date and time from WorldTimeAPI

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

62 Commits

Folders and files

Repository files navigation

WorldTimeAPI.jl

CI codecov Aqua

Introduction

WorldTimeAPI.jl is a lightweight Julia package that offers a convenient interface to retrieve the current time and date for any specified timezone, or use UTC by default.

Note: The original WorldTimeAPI service has been sunset. This package now uses TimeAPI.io as its backend.

Getting Started

Installation

pkg> add WorldTimeAPI

Example

using WorldTimeAPI

# get the current UTC datetime
@show dt_utc = WorldTimeAPI.datetime()

# get the current datetime for New York
@show dt_new_york = WorldTimeAPI.datetime("America/New_York")

# get the current datetime for Los Angeles
@show dt_los_angeles = WorldTimeAPI.datetime("America/Los_Angeles")

Contributing

Contributions, bug reports, and feature requests are welcome! Feel free to open an issue or submit a pull request.

About

Fetching date and time from WorldTimeAPI

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages