Download apps/core/telemetry/time.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 237 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/telemetry/time.py
- Command line
-
hf download hf://spaces/jun2024/fc/apps/core/telemetry/time.py
-
curl -L -o time.py https://huggingface.co/spaces/jun2024/fc/resolve/main/apps/core/telemetry/time.py
237 Bytes
| """Module for time.""" | |
| from __future__ import annotations | |
| from datetime import UTC, datetime | |
| def utc_now() -> datetime: | |
| return datetime.now(UTC) | |
| def utc_now_iso() -> str: | |
| return utc_now().isoformat().replace("+00:00", "Z") | |