Files
MicroPythonOS/internal_filesystem/lib/mpos/time.py
T
Thomas Farstrike 25f60d922d add time.py
2025-05-26 11:11:13 +02:00

11 lines
215 B
Python

import time
def epoch_seconds():
import sys
if sys.platform == "esp32":
# on esp32, it needs this correction:
return time.time() + 946684800
else:
return round(time.time())