[tz] What are the interfaces to the TZDB?
Paul Eggert
eggert at cs.ucla.edu
Tue Nov 9 16:04:17 UTC 2021
On 11/9/21 06:52, Tom Lane wrote:
> AFAIK, the only way to enumerate the available zones in a typical
> installation is to search the directory tree.
Although that was true years ago, since 2017c tzdb has distributed a
file tzdata.zi that also works. For example, on my Fedora 35 host, the
shell command:
awk '/^Z/ {print $2}' /usr/share/zoneinfo/tzdata.zi
lists a name for each distinct TZif file.
More information about the tz
mailing list