0 points

get the current time


PHOTO EMBED

Thu Dec 31 2020 16:38:29 GMT+0000 (UTC)

Saved by @houch841 #python #datetime

from time import gmtime, strftime

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

content_copyCOPY