Get the current time in Python

PHOTO EMBED

Saved by @bravocoder #python

>>> from time import gmtime, strftime
>>> strftime("%Y-%m-%d %H:%M:%S", gmtime())
'2009-01-05 22:14:39'
content_copyCOPY

https://stackoverflow.com/questions/415511/how-to-get-the-current-time-in-python