Sha256: 620fdbc62e16014c8152092558a98dc20e26db152589b6f55c869c7b7e584c89

Contents?: true

Size: 1.8 KB

Versions: 19

Compression:

Stored size: 1.8 KB

Contents

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

[![Crates.io](https://img.shields.io/crates/v/iana-time-zone.svg)](https://crates.io/crates/iana-time-zone)
[![Documentation](https://docs.rs/iana-time-zone/badge.svg)](https://docs.rs/iana-time-zone/)
[![Crate License](https://img.shields.io/crates/l/iana-time-zone.svg)](https://crates.io/crates/iana-time-zone)
[![build](https://github.com/strawlab/iana-time-zone/actions/workflows/rust.yml/badge.svg)](https://github.com/strawlab/iana-time-zone/actions?query=branch%3Amain)

This small utility crate gets the IANA time zone for the current system.
This is also known the [tz database](https://en.wikipedia.org/wiki/Tz_database),
tzdata, the zoneinfo database, and the Olson database.

Example:

```rust
// Get the current time zone as a string.
let tz_str = iana_time_zone::get_timezone()?;
println!("The current time zone is: {}", tz_str);
```

You can test this is working on your platform with:

```
cargo run --example get_timezone
```

## Minimum supported rust version policy

This crate has a minimum supported rust version (MSRV) of 1.48
for [Tier 1](https://doc.rust-lang.org/1.63.0/rustc/platform-support.html) platforms.

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](LICENSE-APACHE) or
  <http://www.apache.org/licenses/LICENSE-2.0>)
* MIT license ([LICENSE-MIT](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.

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.61/README.md
wasmtime-28.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.61/README.md
wasmtime-27.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.61/README.md
wasmtime-26.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.61/README.md
wasmtime-25.0.2 ./ext/cargo-vendor/iana-time-zone-0.1.60/README.md
wasmtime-25.0.1 ./ext/cargo-vendor/iana-time-zone-0.1.60/README.md
wasmtime-25.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.60/README.md
wasmtime-24.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.60/README.md
wasmtime-23.0.2 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-22.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-21.0.1 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-20.0.2 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-20.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-18.0.3 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-17.0.1 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-17.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-16.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-15.0.1 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md
wasmtime-15.0.0 ./ext/cargo-vendor/iana-time-zone-0.1.59/README.md