tzdb — Time Zone Database
Static time zone information for tz-rs.
This crate provides all time zones found in the Time Zone Database, currently in the version 2022b (released 2022-08-10).
See the documentation for a full list the the contained time zones: https://docs.rs/tzdb/latest/tzdb/time_zone/index.html
Usage examples
use ;
use ;
// access by identifier
now;
// access by name
now;
// names are case insensitive
now;
Feature flags
by-name(enabled by default) — enables tz_by_name() to get a time zone at runtime by namelist(enabled by default) — enables TZ_NAMES to get a list of all shipped time zoneslocal(enabled by default) — enables local_tz() to get the system time zoneserde-as— enables the moduleserde_asto (de)serialize (Utc)DateTimes with serdebinary– make the unparsed, binary tzdata of a time zone available
Git cloning
The main branch gets squashed regularily to keep the size of the repository at a maintainable size.
To get the history until then, please refer to the id in the initial commit.