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

0

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

import datetime
datetime.datetime.now().astimezone().isoformat()
>>> 2020-03-20T14:32:16.458361+13:00
Posted by: Guest on September-16-2021
0

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

import datetime
datetime.datetime.now().astimezone().isoformat()
>>> 2020-03-20T14:32:16.458361+13:00
Posted by: Guest on September-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language