Expand description
§tzdb_data
— Time Zone Database
Static, #![no_std]
time zone information for tz-rs
This crate provides all time zones found in the Time Zone Database.
§Usage examples
// access by identifier
let time_zone = tzdb_data::time_zone::europe::KYIV;
// access by name
let time_zone = tzdb_data::find_tz(b"Europe/Berlin").unwrap();
// names are case insensitive
let time_zone = tzdb_data::find_tz(b"ArCtIc/LoNgYeArByEn").unwrap();
Modules§
- All defined time zones statically accessible
Constants§
- A list of all known time zones
- The version of the source Time Zone Database
- The SHA512 hash of the source Time Zone Database (using the “Complete Distribution”)
Functions§
- Find the raw, unparsed time zone data by name, e.g.
b"Europe/Berlin"
(case-insensitive) - Find a time zone by name, e.g.
b"Europe/Berlin"
(case-insensitive)