G
Guest
When I do:
datetime.datetime.now().isoformat(' ')
I get the time with the microseconds. The docs says:
"if microsecond is 0 YYYY-MM-DDTHH:MM:SS+HH:MM".
How do I set microsecond to 0?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type
'datetime.datetime'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type
'datetime.datetime'
Do I need to create my own class to extend datetime.datetime?
datetime.datetime.now().isoformat(' ')
I get the time with the microseconds. The docs says:
"if microsecond is 0 YYYY-MM-DDTHH:MM:SS+HH:MM".
How do I set microsecond to 0?
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type
'datetime.datetime'
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't set attributes of built-in/extension type
'datetime.datetime'
Do I need to create my own class to extend datetime.datetime?