tzdb — Time Zone Database

GitHub Workflow Status Crates.io Minimum supported Rust version License

Static time zone information for tz-rs.

This crate provides all time zones found in the Time Zone Database, currently in the version 2022e (released 2022-03-15).

See the documentation for a full list the the contained time zones: https://docs.rs/tzdb/latest/tzdb/time_zone/index.html

Usage examples

```rust use tz::{DateTime, TimeZone}; use tzdb::{timezone, tzby_name};

// access by identifier DateTime::now(timezone::europe::KIEV); // access by name DateTime::now(tzbyname("Europe/Berlin").unwrap()); // names are case insensitive DateTime::now(tzby_name("ArCtIc/LongYeArByEn").unwrap()); ```

Feature flags

Git Cloning

To clone / fork the Git repo you need to have git-lfs installed.