Static time zone information for tz-rs.
This crate provides all time zones found in the Time Zone Database, currently in the version 2021e (released 2021-10-21).
See the documentation for a full list the the contained time zones: https://docs.rs/tzdb/latest/tzdb/time_zone/index.html
```rust use tz::{DateTime, TimeZone}; use tzdb::TimeZoneExt;
// access by identifier DateTime::now(tzdb::timezone::europe::KIEV); // access by name DateTime::now(TimeZone::fromdb("Europe/Berlin").unwrap()); // names are case insensitive DateTime::now(TimeZone::from_db("ArCtIc/LongYeArByEn").unwrap()); ```
by-name
(enabled by default) — enables TimeZoneExt::from_db() to get a time zone at runtime by namelist
(enabled by default) — enables TimeZoneExt::namesindb() to get a list of all shipped time zoneslocal
(enabled by default) — enables TimeZoneExt::localfromdb() to get the system time zoneserde-as
— enables serde_as to (de)serialize (Utc)DateTimes with serdeTo clone / fork the Git repo you need to have git-lfs installed.