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

Alexander Belopolsky report at bugs.python.org
Sun May 20 15:25:09 EDT 2018


Alexander Belopolsky <alexander.belopolsky at gmail.com> added the comment:

Well, even in non-POSIX mode timegm and gmtime are the inverse of one another in BSD.  The problem that you see stems from the fact that time.gmtime is implemented as a call to the namesake C function while calendar.timegm is implemented in pure Python. It would be reasonable to bring some consistency to this situation.

----------

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


More information about the Python-bugs-list mailing list