import machine, time
UNIX_OFFSET = 946684800
machine.RTC().init((2023, 8, 29, 2, 7, 35, 0, 0))
while True:
print(time.time() + UNIX_OFFSET)
print(machine.RTC().datetime())
time.sleep(1)
import machine, time
UNIX_OFFSET = 946684800
machine.RTC().init((2023, 8, 29, 2, 7, 35, 0, 0))
while True:
print(time.time() + UNIX_OFFSET)
print(machine.RTC().datetime())
time.sleep(1)