To answer this question we can use two approaches:


import datetime

s = datetime.datetime.now().isoformat()
print(s)
# '2017-07-24T23:54:45.203788'

Tags

Related Articles

This website uses cookies to ensure you get the best experience on our website. More info