Files
Open-Assistant/oasst-shared/oasst_shared/utils.py
T
2023-01-02 00:01:45 +00:00

7 lines
177 B
Python

from datetime import datetime, timezone
def utcnow() -> datetime:
"""Return the current utc date and time with tzinfo set to UTC."""
return datetime.now(timezone.utc)