Nov. 9, 2021
3:15 p.m.
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