[issue10427] 24:00 Hour in DateTime
Rodrigo Bernardo Pimentel
report at bugs.python.org
Sun Nov 21 19:24:42 CET 2010
Rodrigo Bernardo Pimentel <rbp at isnomore.net> added the comment:
I was writing tests for this issue, when something struck me: ok, datetime(year, month, day, 24) is valid. But is datetime(year, month, day, 24, 1) valid? Or datetime(year, month, day, 24, 0, 0, 1)?
I would say those aren't valid, although that makes checking forvalid hour values slightly weird (as in not straightforward): 24 is valid if minutes, seconds and microseconds are all 0, but invalid otherwise.
What do you think?
----------
nosy: +rbp
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10427>
_______________________________________
More information about the Python-bugs-list
mailing list