7 releases

new 0.3.0 Nov 23, 2024
0.2.3 May 28, 2024
0.2.2 Sep 24, 2023
0.2.1 Jan 26, 2023
0.1.0 Jun 8, 2022

#168 in Date and time

Unicode-3.0

110KB
2K SLoC

tzif crates.io

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();

More Information

For more information on development, authorship, contributing etc. please visit ICU4X home page.

Dependencies

~745KB
~15K SLoC