[issue10427] 24:00 Hour in DateTime

Alexander Belopolsky report at bugs.python.org
Mon Nov 15 16:24:34 CET 2010


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

+1

Note that in Python, semi-open intervals are favored, but specifying the last hour of the day is awkward when using datetime (as OP mentioned) and impossible using just time.  Using closed intervals is not a good work-around in many cases because it requires the user to be explicit about precision:  is the last hour [23:00-23:59], [23:00:00-23:59:00], or [23:00:00.999999-23:59:00.999999]?

I offer to write the patch for the C implementation if someone comes up with a patch for datetime.py including tests.

----------
assignee:  -> belopolsky
components: +Extension Modules
stage:  -> unit test needed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10427>
_______________________________________


More information about the Python-bugs-list mailing list