mktime() failure vs 31-DEC-1969 23:59:59 GMT
bww at fore.com
Fri Feb 16 15:59:16 UTC 1996
>> Call localtime() on the seemingly-in-error mktime() result, and compare
>> the relevant portions of the structs tm. A match implies a non-error.
> This doesn't sound very stable, but perhaps there is no other alternative.
I'm not sure of what you mean by stable. This is, after all, exactly what
mktime() does to determine is has the matching time_t.
> Of course, we only need to check this
> when the return of mktime() is -1
Exactly what I meant by "Call localtime() on the seemingly-in-error mktime()
More information about the tz