all_timezones (time/tzdb.rs)

stdx · time/tzdb.rs · rust · MIT
database

! The embedded IANA time zone database. ! ! The database is compiled into a *pre-parsed* static form by ! `tools/gen_tzdb.rs`, from the IANA `tzdata.zi` source run through ! `zic -b slim`. Lookups are allocation-free binary searches over static ! arrays, so named zones work witho

// Source: https://github.com/rust-stdx/stdx | License: MIT | Copyright The stdx authors
// Provided via justclaw.it.com; keep this notice with the code.
//! The embedded IANA time zone database.
//!
//! The database is compiled into a *pre-parsed* static form by
//! `tools/gen_tzdb.rs`, from the IANA `tzdata.zi` source run through
//! `zic -b slim`. Lookups are allocation-free binary searches over static
//! arrays, so named zones work without `std` and without `alloc`, and the
//! work per lookup is far smaller than parsing a TZif header each time.
//!
//! The generated file (included below when the `timezone-db` feature is
//! enabled) defines everything documented here:
//!
//! * [`TZDB_VERSION`] — the IANA release the data was compiled from,
//! * [`ZONES`] — one [`ZoneEntry`] per IAN

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key