On 4/20/23 15:20, Bruno Haible wrote:
How to get further? Should I add this specific mktime call as a test
case to the 'mktime' module's tests?
If you're interested in pursuing that I suppose it wouldn't hurt.
The Microsoft documentation
https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/mktime-mktime32-mktime64?view=msvc-170
says "If timeptr references a date before midnight, January 1, 1970, or
if the calendar time can't be represented, _mktime32 returns -1 cast to
type time_t." This suggests that native mktime won't handle the
timestamp in question since it predates midnight, January 1, 1970 local
time, even though it does not predate it in UTC.
That being said, a later part of the Microsoft documentation seems to
imply the opposite.