[issue13936] datetime.time(0, 0, 0) evaluates to False despite being a valid time
Tim Peters
report at bugs.python.org
Fri Feb 3 22:19:49 CET 2012
Tim Peters <tim.peters at gmail.com> added the comment:
>From the docs, at:
http://docs.python.org/library/datetime.html#time-objects
"""
in Boolean contexts, a time object is considered to be true if and only if, after converting it to minutes and subtracting utcoffset() (or 0 if that’s None), the result is non-zero.
"""
----------
nosy: +tim_one
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13936>
_______________________________________
More information about the Python-bugs-list
mailing list