[issue19475] Add microsecond flag to datetime isoformat()

Alexander Belopolsky report at bugs.python.org
Wed Nov 6 18:20:54 CET 2013


Alexander Belopolsky added the comment:

I am afraid that the rounding issues may kill this proposal.  Can we start with something simple?  For example, we can start with show=None keyword argument and allow a single value 'microseconds' (or 'us').  This will solve the issue at hand with a reasonable syntax: t.isoformat(show='us').  If other resolutions will be required, we can later add more values and may even allow t.isoformat(show=2) to show 2 decimal digits.

----------

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


More information about the Python-bugs-list mailing list