#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

#92 in Date and time

Download history 5/week @ 2024-01-06 2/week @ 2024-01-13 7/week @ 2024-02-10 23/week @ 2024-02-17 67/week @ 2024-02-24 35/week @ 2024-03-02 61/week @ 2024-03-09 50/week @ 2024-03-16 41/week @ 2024-03-23 173/week @ 2024-03-30 95/week @ 2024-04-06

373 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–40MB
~569K SLoC