Answers for "UTC to ISO 8601 with TimeZone information (Python 3):"

0

UTC to ISO 8601 with TimeZone information (Python 3):

import datetime
datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).isoformat()
>>> 2020-03-20T01:31:12.467113+00:00
Posted by: Guest on September-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language