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.
```rust use combine::{Parser, stream}; use std::fs::File; use tzif::tzif;
let file = File::open("pathtofile").unwrap(); let stream = stream::buffered::Stream::new( stream::position::Stream::new(stream::read::Stream::new(file)), 0, /* lookahead */ ); let data = tzif().parse(stream).unwrap(); ```
```rust use combine::Parser; use tzif::posixtzstring;
let data = posixtzstring() .parse(b"WGT3WGST,M3.5.0/-2,M10.5.0/-1".as_slice()) .unwrap(); ```
For more information on development, authorship, contributing etc. please visit ICU4X home page
.