Feb. 16, 1996
7:59 a.m.
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() result."