pyvckit/util.py
Cayo Puigdefabregas 9690b606e0 utils with now
2024-05-24 13:14:12 +02:00

8 lines
217 B
Python

from datetime import datetime, timezone
def now():
timestamp = datetime.now(timezone.utc).replace(microsecond=0)
formatted_timestamp = timestamp.strftime("%Y-%m-%dT%H:%M:%SZ")
return formatted_timestamp