[issue13936] RFE: change bool(datetime.time(0, 0, 0)) to evaluate as True
Alexander Belopolsky
report at bugs.python.org
Thu Mar 6 02:59:10 CET 2014
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 <report at bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________
More information about the Python-bugs-list
mailing list