Tim Peters <t...@python.org> added the comment: The docs for the `time` module say:
""" Although this module is always available, not all functions are available on all platforms. Most of the functions defined in this module call platform C library functions with the same name. It may sometimes be helpful to consult the platform documentation, because the semantics of these functions varies among platforms. """ The Windows `localtime()` simply doesn't support dates before the epoch: https://msdn.microsoft.com/en-us/library/aa246456(v=vs.60).aspx ---------- nosy: +tim.peters _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31327> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com