Files
Open-Assistant/oasst-shared/oasst_shared/utils.py
T
2022-12-27 22:37:48 +01:00

8 lines
201 B
Python

# -*- coding: utf-8 -*-
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)