Nov. 14, 2024
7:53 a.m.
Date: Wed, 13 Nov 2024 22:54:06 -0700 From: Paul Eggert <eggert@cs.ucla.edu> Message-ID: <49958d54-4e0e-4556-9ed3-571617c437b4@cs.ucla.edu> | Yes, of course, and the current tzcode succeeds by outputting the | textual equivalent of (time_t) -1. That isn't the number of seconds since the epoch calculated as specified for mktime() unless the struct tm happened to contain the local timezone equiv of Dec 31 1969 23:59:59 UTC. Since that number is what it is specified to produce, it isn't successful unless it does. | It would be better if it output the numerically correct value, That, or return an error, either is acceptable - except for a tm which is in fact (time_t)-1 inserting "-1" is failing. kre