Answers for "datetime remove microseconds to second python"

1

how to remove microseconds from datetime in python

>>> datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
'2011-11-03 18:21:26'
Posted by: Guest on February-13-2021

Code answers related to "datetime remove microseconds to second python"

Python Answers by Framework

Browse Popular Code Answers by Language