feat(py-monitor): add iso_now()

This commit is contained in:
hoelee committed 2026-01-27 09:00:00 +08:00
1 parent 2eb3704ca5
commit 3e097c7704
1 file changed
+10
@@ -0,0 +1,10 @@
"""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())