[tz] Proper (stable) way to list installed time zones?
lains at archlinux.org
Fri May 15 13:43:05 UTC 2020
On Wed, 2020-05-13 at 19:13 -0700, Paul Eggert wrote:
> Yup. The method I'd suggest is tzdata.zi if available, or the "shorter list"
> mentioned above, whichever's faster. This is because zone1970.tab and zone.tab
> don't list some of the duplicates, and some users like the duplicates.
> If you also want the leap-second entries, you'll need the right/* entries though.
I am thinking the best approach should be reading tzdata.zi when
available, and potentially fallback to ignoring posix/* and
right/* and posixrules. I am not sure about this last one though, for
reasons outlined in the PR. What do you think Paul (G.)?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: This is a digitally signed message part
More information about the tz