#iana #time

iana-time-zone

get the IANA time zone for the current system

36 releases

new 0.1.35 Jun 29, 2022
0.1.33 Apr 15, 2022
0.1.31 Mar 16, 2022
0.1.26 Dec 23, 2021
0.1.1 Jun 27, 2020

#32 in Date and time

Download history 215/week @ 2022-03-10 512/week @ 2022-03-17 318/week @ 2022-03-24 341/week @ 2022-03-31 500/week @ 2022-04-07 633/week @ 2022-04-14 628/week @ 2022-04-21 713/week @ 2022-04-28 512/week @ 2022-05-05 913/week @ 2022-05-12 738/week @ 2022-05-19 654/week @ 2022-05-26 445/week @ 2022-06-02 119/week @ 2022-06-09 609/week @ 2022-06-16 769/week @ 2022-06-23

2,076 downloads per month
Used in 2 crates

MIT/Apache

14KB
248 lines

iana-time-zone - get the IANA time zone for the current system

Crates.io Documentation Crate License build

This small utility crate gets get the IANA time zone for the current system. This is also known the tz database, tzdata, the zoneinfo database and, the Olson database.

Example:

extern crate iana_time_zone;
println!("current: {}", iana_time_zone::get_timezone().unwrap());

You can test this is working on your platform with:

cargo test -- --nocapture

Minimum supported rust version policy

This crate has a minimum supported rust version (MSRV) of 1.38. Updates to the MSRV are sometimes necessary due to the MSRV of dependencies. MSRV updates will not be indicated as a breaking change to the semver version.

License

Licensed under either of

at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0–335KB