pyvckit/utils.py
Cayo Puigdefabregas 5bc11525f0 refactor sign VCs
2024-05-24 13:39:50 +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