#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

#84 in Date and time

Download history 261/week @ 2024-08-23 319/week @ 2024-08-30 457/week @ 2024-09-06 246/week @ 2024-09-13 387/week @ 2024-09-20 236/week @ 2024-09-27 336/week @ 2024-10-04 315/week @ 2024-10-11 446/week @ 2024-10-18 385/week @ 2024-10-25 410/week @ 2024-11-01 292/week @ 2024-11-08 434/week @ 2024-11-15 280/week @ 2024-11-22 554/week @ 2024-11-29 421/week @ 2024-12-06

1,735 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–36MB
~533K SLoC