Message54311
From documentation of datetime.isoformat() and
__str__() :
Return a string representing the date and time in ISO
8601 format, YYYY-MM-DDTHH:MM:SS.mmmmmm or, if
microsecond is 0, YYYY-MM-DDTHH:MM:SS
This behavior assume if microsecond is 0, it means the
user don't need microsecond precision. This is a poor
assumption because obviously the user may want
microsecond precision but its value just happen to be 0.
Now the output is irregular the user can't even use string
slicing without checking the length of the output first.
Similar behavior found in
timedelta.__str__()
time.isoformat()
|
|
Date |
User |
Action |
Args |
2007-08-23 16:08:34 | admin | link | issue1074462 messages |
2007-08-23 16:08:34 | admin | create | |
|