[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

Guido van Rossum report at bugs.python.org
Tue Mar 1 16:50:55 EST 2016


Guido van Rossum added the comment:

IIUC truncation traditionally means "towards zero" -- that's why we have separate "floor" and "ceiling" operations meaning "towards [negative] infinity". Fortunately we shouldn't have to deal with negative values here so floor and truncate mean the same thing. Agreed that isoformat() should also truncate.

----------

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


More information about the Python-bugs-list mailing list