1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extern crate zoneinfo_compiled;
use env;
use File;
use Read;
use Path;
// This example is broken until we have a way to get at the transitions in
// time zone data directly. Right now it just does a Rust Debug dump of the
// file...
// fn tzdump(mut tz: zoneinfo_compiled::TZData) {
// tz.transitions.sort_by(|a, b| a.timestamp.cmp(&b.timestamp));
//
// for t in tz.transitions {
// let l = &*t.local_time_type;
// println!("{:11?}: name:{:5} offset:{:5} DST:{:5} type:{:?}",
// t.timestamp, l.name, l.offset, l.is_dst, l.transition_type);
// }
// }