[tz] What are the interfaces to the TZDB?

Eliot Lear lear at lear.ch
Tue Nov 9 15:15:01 UTC 2021


On 09.11.21 15:52, Tom Lane via tz wrote:
> AFAIK, the only way to enumerate the available zones in a typical
> installation is to search the directory tree.  This isn't great,
> not least because it means that non-tzcode code has to know where
> that directory tree is.  It'd be good to support that functionality
> in a more direct fashion.

That's an easy one to solve (finally?  An easy problem?).  That is the C 
equivalent of-

( export TDIR=/usr/share/zoneinfo cd $TDIR; find * -type f -print |egrep 
-v 'VERSION|leapseconds|posixrules|zone.tab' )

where TDIR is defined at build.  Is that an important interface to 
define and standardize?

Eliot



-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x87B66B46D9D27A33.asc
Type: application/pgp-keys
Size: 5051 bytes
Desc: OpenPGP public key
URL: <https://mm.icann.org/pipermail/tz/attachments/20211109/9996b749/OpenPGP_0x87B66B46D9D27A33.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://mm.icann.org/pipermail/tz/attachments/20211109/9996b749/OpenPGP_signature.sig>


More information about the tz mailing list