feat(py-monitor): add iso_from_epoch()

This commit is contained in:
hoelee committed 2026-10-12 13:26:00 +08:00
1 parent 1e891996f9
commit c68e406b0c
1 file changed
+4
@@ -9,3 +9,7 @@ def iso_now():
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime())
def iso_from_epoch(epoch):
if not epoch:
return None
return time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(epoch))