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
2,076 downloads per month
Used in 2 crates
14KB
248 lines
iana-time-zone - get the IANA time zone for the current system
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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