[issue2568] Seconds range in time unit

Alexander Belopolsky report at bugs.python.org
Mon Apr 7 21:27:22 CEST 2008


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

OP does not have the reference, but the issue is apparently in the time
and datetime modules documentation:

http://docs.python.org/dev/library/time.html#time.strftime
http://docs.python.org/dev/library/datetime.html#strftime-behavior

Note that datetime's doc is twice incorrect because leap seconds are not
supported by the datetime module at all:

>>> from datetime import *
>>> time(23,59,60)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: second must be in 0..59
>>> datetime.strptime('20000101T235960', '%Y%m%dT%H%M%S')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: second must be in 0..59

----------
assignee:  -> georg.brandl
components: +Documentation -Library (Lib)
nosy: +belopolsky, georg.brandl

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2568>
__________________________________


More information about the Python-bugs-list mailing list