#timezone #iana #local-time #olson

localzone

figures out the local timezone as IANA / Olson identifier

3 releases (breaking)

0.3.1 Apr 12, 2024
0.2.0 Dec 9, 2021
0.1.0 Dec 7, 2021

#80 in Date and time

Download history 456/week @ 2024-07-27 404/week @ 2024-08-03 345/week @ 2024-08-10 404/week @ 2024-08-17 270/week @ 2024-08-24 345/week @ 2024-08-31 435/week @ 2024-09-07 242/week @ 2024-09-14 391/week @ 2024-09-21 270/week @ 2024-09-28 301/week @ 2024-10-05 317/week @ 2024-10-12 462/week @ 2024-10-19 416/week @ 2024-10-26 390/week @ 2024-11-02 278/week @ 2024-11-09

1,590 downloads per month
Used in 4 crates

Apache-2.0

64KB
684 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–35MB
~532K SLoC