SyntaxFix
Write A Post
Hire A Developer
Questions
I usually do:
import datetime now = datetime.datetime.now() now = now.replace(microsecond=0) # To print now without microsecond. # To print now: print(now)
output:
2019-01-13 14:40:28