On 8/6/26 14:22, Steffen Nurpmeso via tz wrote:
If
localtime and gmtime both refer to the same clock_gettime, then at
maximum there can be "one day" difference

The timestamps can be in different years. December 31 of one year, January 1 of the next. Or vice versa.

 there was a change due to the "Dublin
stuff"

I'm not seeing how the code you quoted handles negative DST, as in Europe/Dublin. Nor do I see how it handles DST offsets of 30 minutes, as in Pacific/Rarotonga.

Again, look at the code in zdump.c that does this sort of thing, and if there's something you don't understand please ask. Attempts to simplify it without understanding it are likely to result in bugs.

Reply via email to