Author David.Edelsohn
Recipients David.Edelsohn, python-dev, serhiy.storchaka, vstinner
Date 2014-02-21.18:32:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1393007569.54.0.038059823987.issue19748@psf.upfronthosting.co.za>
In-reply-to
Content
>>> time.localtime(-2)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=15, tm_min=59, tm_sec=58, tm_wday=2, tm_yday=365, tm_isdst=0)
>>> time.localtime(-1)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=15, tm_min=59, tm_sec=59, tm_wday=2, tm_yday=365, tm_isdst=0)
>>> time.localtime(0)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=16, tm_min=0, tm_sec=0, tm_wday=2, tm_yday=365, tm_isdst=0)
>>> time.localtime(1)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=16, tm_min=0, tm_sec=1, tm_wday=2, tm_yday=365, tm_isdst=0)
>>> time.mktime(time.localtime(-2))
-2.0
>>> time.mktime(time.localtime(-1))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OverflowError: mktime argument out of range
>>> time.mktime(time.localtime(0))
0.0
>>> time.mktime(time.localtime(1))
1.0
History
Date User Action Args
2014-02-21 18:32:49David.Edelsohnsetrecipients: + David.Edelsohn, vstinner, python-dev, serhiy.storchaka
2014-02-21 18:32:49David.Edelsohnsetmessageid: <1393007569.54.0.038059823987.issue19748@psf.upfronthosting.co.za>
2014-02-21 18:32:49David.Edelsohnlinkissue19748 messages
2014-02-21 18:32:48David.Edelsohncreate