Initial commit: add .gitignore and README
Some checks failed
Tests / test (3.10) (push) Has been cancelled
Tests / test (3.11) (push) Has been cancelled
Tests / test (3.12) (push) Has been cancelled
Tests / lint (push) Has been cancelled
Tests / docker (push) Has been cancelled

This commit is contained in:
defiQUG
2026-02-09 21:51:42 -08:00
commit c052b07662
3146 changed files with 808305 additions and 0 deletions

13
fusionagi/_time.py Normal file
View File

@@ -0,0 +1,13 @@
"""Shared time utilities; timezone-aware UTC to avoid deprecated datetime.utcnow."""
from datetime import datetime, timezone
def utc_now() -> datetime:
"""Return current UTC time (timezone-aware). Prefer over datetime.utcnow()."""
return datetime.now(timezone.utc)
def utc_now_iso() -> str:
"""Return current UTC time as ISO format string."""
return utc_now().isoformat()