Alexander Belopolsky added the comment:

> You're trying to count midnight as the previous day instead of the actual day?

yes

> That seems extremely contrived

Why?  Midnight can be considered to be the last moment of the day or the first 
moment of the day.  In ISO standard there are separate notations for those: 
24:00 and 00:00.  Python does not allow time(24), so an application that 
considers midnight to be the last moment of the day has to treat time(0) 
exceptionally.

See also #10427.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to