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§
- data
- The parsed data representations.
- error
- Error types an implementations.
- parse
- The parser implementations.
Functions§
- parse_
posix_ tz_ string - Parses a POSIX time-zone string from the given bytes.
- parse_
tzif_ file - Parses a
TZif
file at the providedpath
.