mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-06-29 16:30:24 +08:00
8 lines
201 B
Python
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)
|