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

Alexander Belopolsky report at bugs.python.org
Tue Dec 15 15:01:28 EST 2015


Alexander Belopolsky added the comment:

> The problem here is that millisecond and nanosecond seems not to be attributes of the datetime object.

millisecond = dt.microsecond // 1000

nanosecond = 0  # until we add it to datetime.

----------

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


More information about the Python-bugs-list mailing list