Timezone files Lassi Kortela 12 Aug 2019 14:00 UTC
>> On the root of zoneinfo: I think we should expect the implementer of >> SRFI 170 to figure out where it is, though we could say it's in >> /usr/share/zoneinfo with these known exceptions, and may be elsewhere. > > One possibility is to readlink("/etc/localtime") and split the result at > the last occurrence of "zoneinfo", trusting that the timezones are under > some "zoneinfo" directory on all systems. Also, `strings /etc/localtime` shows that the timezone names cannot be parsed from the file data itself. It's a pity they didn't build such redundancy into the timezone compiler's file format. Maybe the format hails from a time when adding 30 bytes to the size of a disk file was a decision you had to think about.