16 Oct
2017
16 Oct
'17
9:58 a.m.
Daniel Ford wrote:
This would be fine as long as my clock has access to the TZdb each year, but what if the database someday ceases to exist (or be maintained)?
Then you lose. DST rules change from year to year; even if you're only interested in current times you need frequent updates. In practice the extent of the need varies between locations, but even in the most stable cases after a few years you'd just be guessing. The database does support this kind of guessing, however. There's a nearly-POSIX-TZ field in the tzfiles, which represents the current best guess of what behaviour the zone will have after all the explicitly listed transitions. You can extract that field and process it indefinitely on the small device. -zefram