☰
Debian Codegraph
@
0.12.0-1
0.10.0-1
/
/
debian
/
rust-vendor
/
iana-time-zone
/
examples
/
get_timezone.rs
☽
☼
debian/rust-vendor/iana-time-zone/examples/get_timezone.rs
code
plain
raw
MIT
or
Apache-2.0
the respective crate authors
debian/copyright
1
use iana_time_zone::{get_timezone, GetTimezoneError};
2
3
fn main() -> Result<(), GetTimezoneError> {
4
println!("{}", get_timezone()?);
5
Ok(())
6
}