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

0

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

import datetime
datetime.datetime.now().astimezone().replace(microsecond=0).isoformat()
>>> 2020-03-20T14:31:43+13:00
Posted by: Guest on September-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language