WorldTimeAPI.jl

Fetching date and time from WorldTimeAPI
Author raphasampaio
Popularity
1 Star
Updated Last
3 Months Ago
Started In
July 2024

WorldTimeAPI.jl

CI codecov Aqua

Introduction

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

Getting Started

Installation

julia> ] 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.

Used By Packages

No packages found.