Jan. 13, 2024
10:25 p.m.
On 1/13/24 14:09:31, Guy Harris via tz wrote:
On Jan 13, 2024, at 12:39 PM, Brooks Harris<brooks@edlmax.com> wrote:
But applications must be careful to be sure it's set to the current value representing the broken-down-time. Maybe some sort of 'state' flag is needed, like "not set", "set by localtime", "set by mktime()" . And how are you to ensure whether the state flag has been set? Perhaps an additional state flag, indicating the state of the first state flag? (I'm sure you can see where that takes you.) . I could envision, but don't advocate, a field in struct tm which is a strong checksum of the rest of the struct ...
Cui bono? -- gil