inference-engine / app /utils /helpers.py
Ashu212's picture
Deploy from GitHub Actions
1c77735 verified
Raw
History Blame Contribute Delete
228 Bytes
import uuid
from datetime import datetime, timezone
def new_uuid() -> str:
return str(uuid.uuid4())
def utcnow() -> datetime:
return datetime.now(timezone.utc)
def iso_now() -> str:
return utcnow().isoformat()