Answers for "Local to ISO 8601 without microsecond:"

0

Local to ISO 8601 without microsecond:

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

Python Answers by Framework

Browse Popular Code Answers by Language