What would be the equivalent of time.ctime()
for UTC time?
Currently, if I enter time.ctime()
in the interpreter, I get this:
'Mon Feb 5 17:24:48 2018'
This returns the local time and I would like to know how to get time in the same format except in UTC.
Edit: It's time.asctime(time.gmtime())