#iana-timezone #local-time #iana #timezone #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

#302 in Date and time

Download history 932/week @ 2026-01-13 962/week @ 2026-01-20 1035/week @ 2026-01-27 1242/week @ 2026-02-03 1246/week @ 2026-02-10 1278/week @ 2026-02-17 884/week @ 2026-02-24 806/week @ 2026-03-03 1050/week @ 2026-03-10 1157/week @ 2026-03-17 1210/week @ 2026-03-24 1384/week @ 2026-03-31 1500/week @ 2026-04-07 1052/week @ 2026-04-14 1321/week @ 2026-04-21 1343/week @ 2026-04-28

5,416 downloads per month
Used in 11 crates (4 directly)

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–38MB
~486K SLoC