[issue40076] isoformat function drops microseconds part if its value is 000000
Alexander Bolshakov
report at bugs.python.org
Thu Mar 26 10:14:48 EDT 2020
New submission from Alexander Bolshakov <lextiz at gmail.com>:
isoformat function does not conform to the ISO 8601 and drops microseconds part if its value is 000000.
The issue can be reproduced using the following code snippet:
for i in range(1,10000000):
timestamp=datetime.datetime.utcnow().isoformat()
if len(timestamp)!=26:
print(timestamp)
----------
components: Library (Lib)
messages: 365077
nosy: Alexander Bolshakov
priority: normal
severity: normal
status: open
title: isoformat function drops microseconds part if its value is 000000
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40076>
_______________________________________
More information about the Python-bugs-list
mailing list