Rodrigo Bernardo Pimentel <r...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10427>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to