Crates.io | localzone |
lib.rs | localzone |
version | 0.3.1 |
source | src |
created_at | 2021-12-07 22:02:42.734692 |
updated_at | 2024-04-12 15:38:17.292832 |
description | figures out the local timezone as IANA / Olson identifier |
homepage | |
repository | https://github.com/mitsuhiko/localzone |
max_upload_size | |
id | 494120 |
size | 85,835 |
Utility crate to figure out the IANA (Olson) timezone of the current machine. The IANA timezones have been largely established as the standard for identifying timezones but retrieving the current timezone in that format is a surprisingly complex problem. Additionally Windows machines use an incompatible timezone system and this crate helps automaticaly mapping these to the IANA timezones. For this it uses the CLDR maintained timezone mapping.