[issue11930] Remove time.accept2dyear

STINNER Victor report at bugs.python.org
Wed Apr 27 00:30:24 CEST 2011


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

"What makes you say so?

1970"

Don't write ">>> " using the email interface :-)

--


>>> t
time.struct_time(tm_year=70, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0)
>>> time.mktime(t)
-59958144561.0
>>> time.localtime(_)
time.struct_time(tm_year=70, tm_mon=1, tm_mday=1, tm_hour=0, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=1, tm_isdst=0)

Year 70 is considered as the year 70.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11930>
_______________________________________


More information about the Python-bugs-list mailing list