pyvckit/utils.py

8 lines
217 B
Python
Raw Normal View History

2024-05-24 11:14:12 +00:00
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