[issue19475] Add microsecond flag to datetime isoformat()

Alexander Belopolsky report at bugs.python.org
Wed Nov 6 16:51:03 CET 2013


Alexander Belopolsky added the comment:

MAL: Have you thought about the rounding/truncation issues
associated with not showing microseconds ?

I believe it has to be the truncation.  Rounding is better left to the user code where it can be done either using timedelta arithmetics or at the time source.  I would expect that in the majority of cases where lower resolution printing is desired the times will be already at lower resolution at the source.

----------

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


More information about the Python-bugs-list mailing list