9 lines
162 B
Python
9 lines
162 B
Python
import time
|
|
|
|
STAMP = "%Y-%m-%dT%H:%M:%SZ"
|
|
STAMPED = r"\d{4}-\d\d-\d\dT\d\d:\d\d:\d\dZ"
|
|
|
|
|
|
def utc(at: float) -> str:
|
|
return time.strftime(STAMP, time.gmtime(at))
|