Documentation

This is a library for parsing zoneinfo files.

Example

use std::fs::File;
use std::io::Read;
use std::path::Path;
use tz::parse;

let path = Path::new("/etc/localtime");
let mut contents = Vec::new();
File::open(path).unwrap().read_to_end(&mut contents).unwrap();
let transitions = parse(contents).unwrap();

for t in transitions {
    println!("{:?}", t);
}