[issue33579] calendar.timegm not always an inverse of time.gmtime

Martin Panter report at bugs.python.org
Sat May 19 20:13:24 EDT 2018


Martin Panter <vadmium+py at gmail.com> added the comment:

According to Wikipedia, there were 24 leap seconds before Feb 2009. So my guess is Eitan’s “gmtime” implementation is calculating the date as if the timestamp (1234567899) includes leap seconds, as in <https://en.wikipedia.org/wiki/Unix_time#TAI-based_variant>. But according to Posix, the calculation should be for exactly 86400 timestamp seconds per day, and it should not adjust for leap seconds.

----------
nosy: +martin.panter

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33579>
_______________________________________


More information about the Python-bugs-list mailing list