#timezone #localtime #iana #olson

localzone

figures out the local timezone as IANA / Olson identifier

2 unstable releases

0.2.0 Dec 9, 2021
0.1.0 Dec 7, 2021

#10 in #iana

Download history 11/week @ 2023-06-09 56/week @ 2023-06-16 40/week @ 2023-06-23 43/week @ 2023-06-30 32/week @ 2023-07-07 25/week @ 2023-07-14 36/week @ 2023-07-21 25/week @ 2023-07-28 26/week @ 2023-08-04 27/week @ 2023-08-11 34/week @ 2023-08-18 16/week @ 2023-08-25 19/week @ 2023-09-01 27/week @ 2023-09-08 47/week @ 2023-09-15 18/week @ 2023-09-22

114 downloads per month
Used in 3 crates

Apache-2.0

64KB
686 lines

localzone

Build Status Crates.io License Documentation

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.

Dependencies

~0–56MB
~837K SLoC