feat(py-monitor): add iso_now()

This commit is contained in:
hoelee committed 2026-10-09 17:37:00 +08:00
1 parent 3bf72aea76
commit 4c59af3aad
1 file changed
+11
@@ -0,0 +1,11 @@
"""Timestamp helpers - ISO 8601 in UTC, epoch in Asia/Kuala_Lumpur terms."""
import time
from datetime import datetime, timezone
def iso_now():
# UTC: NocoDB parses naive datetimes as UTC.
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())