garage44.eu/jeroen/pinnacle

logclone: git clone https://garage44.eu/jeroen/pinnacle.git

.. /zoneinfo/README.md

raw

Time zones

The world's time zones, from IANA's time zone database (https://www.iana.org/time-zones), version in version: one file per zone of its zone.tab (a zone for each country, Europe/Amsterdam among them), compiled by zic -b slim into TZif (RFC 8536), and UTC. zones lists them with their country, as Settings → Date and time offers them.

Pinnacle reads a zone with pinnacle_tz::Zone::parse (tz/): the transitions the file lists, and after the last one the rule in its footer (CET-1CEST,M3.5.0,M10.5.0/3), so summer time is right in every year after the file was made too, until a country changes its rules.

cargo xtask puts this folder on the system disk as /zoneinfo, which every app may read. Data, not code: it comes with system updates, as the TLS roots do (certificates/). ./update.sh makes it afresh from IANA's latest release (it needs curl and zic). The database is in the public domain.