Answers for "ISO8601 timestamp python"

0

python datetime to string iso 8601

from datetime import datetime
my_date = datetime.now()
print(my_date.strftime('%Y-%m-%dT%H:%M:%S.%f%z'))
Posted by: Guest on August-11-2020
-1

python datetime to string iso 8601

from datetime import datetime
my_date = datetime.now()
print(my_date.isoformat())
Posted by: Guest on August-11-2020

Python Answers by Framework

Browse Popular Code Answers by Language