Zoneinfo_rs
NOTE: This crate is experimental and should be considered unstable.
zoneinfo_rs provides basic parsing and compilation of IANA's time zone database
zoneinfo files.
use Path;
use ;
// Below assumes we are in the parent directory of `tzdata`.
let zoneinfo_filepath = new;
// Parse and then compile the files from the directory.
let parsed_data = from_zoneinfo_directory?;
let _compiled_data = new.build;
Extra notes
Currently, parsing only supports parsing of zoneinfo files and none of the preprocessing
typically completed by awk scripts in tzdata.
It is recommended to still use the baseline awk script until preprocessing is supported.
IANA tzdb repository
The latest version of the time zone database can be found here