[go: up one dir, main page]

chrono-tz 0.1.1

TimeZone implementations for rust-chrono from the IANA database
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Europe_London;

impl ::timezone_impl::Timespans for Europe_London {
    fn this() -> Self { Europe_London }
    fn timespans() -> ::timezone_impl::FixedTimespanSet {
        static REST: &'static [(i64, ::timezone_impl::FixedTimespan)] =
            &[(10000, ::timezone_impl::FixedTimespan { utc_offset: 0, dst_offset: 3600, name: "BST" }),
              (20000, ::timezone_impl::FixedTimespan { utc_offset: 0, dst_offset: 0,    name: "GMT" })];
        ::timezone_impl::FixedTimespanSet {
            first: ::timezone_impl::FixedTimespan { utc_offset: 0, dst_offset: 0,    name: "GMT" },
            rest: REST
        }
    }
}