[tz] mktime() clarification

Dag-Erling Smørgrav des at des.no
Tue Mar 26 02:02:31 UTC 2024


Paul Eggert via tz <tz at iana.org> writes:
> That's what I do, and it works portably on all platforms I know of. In
> contrast, I doubt whether the errno=0 trick is portable.

Thank you.  The errno=0 trick does not work with tzcode since timesub()
can set errno to EOVERFLOW and time2sub() will adjust and recover, cf.
https://github.com/eggert/tz/blob/2024a/localtime.c#L2060-L2064 and the
elsewhere in this thread.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the tz mailing list