mirror of
https://github.com/th30d4y/ExecuTrace.git
synced 2026-05-26 19:36:32 +00:00
12 lines
258 B
Python
12 lines
258 B
Python
from __future__ import annotations
|
|
|
|
from datetime import datetime, timezone
|
|
|
|
|
|
ISO_FORMAT = "%Y-%m-%dT%H:%M:%S.%fZ"
|
|
|
|
|
|
def utc_now_iso() -> str:
|
|
"""Return a UTC timestamp in ISO-8601 format."""
|
|
return datetime.now(tz=timezone.utc).strftime(ISO_FORMAT)
|