[issue19475] Add microsecond flag to datetime isoformat()

STINNER Victor report at bugs.python.org
Fri Jul 24 11:53:22 CEST 2015


STINNER Victor added the comment:

> 'seconds' - %H:%M:%S
> 'us' - %H:%M:%S.%f

'us' is not consistent with the datetime module: it should be 'microseconds.

>>> datetime.datetime.now().second
50
>>> datetime.timedelta(seconds=1)
datetime.timedelta(0, 1)

>>> datetime.datetime.now().microsecond
123710
>>> datetime.timedelta(microseconds=1)
datetime.timedelta(0, 0, 1)

----------

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


More information about the Python-bugs-list mailing list