Crate tzif

Source
Expand description

A parser for Time Zone Information Format (TZif) files.

Also includes a parser for POSIX time-zone strings, which is used by the TZif parser, but also available separately.

Resources to generate TZif files are provided by the IANA database. TZif files are also included in some operating systems.

§Examples

§Parse TZif Files

let data = tzif::parse_tzif_file(Path::new("path_to_file")).unwrap();

§Parse POSIX time-zone strings

let data =
    tzif::parse_posix_tz_string(b"WGT3WGST,M3.5.0/-2,M10.5.0/-1").unwrap();

Modules§

  • The parsed data representations.
  • Error types an implementations.
  • The parser implementations.

Functions§