Dates and Times #

Last updated March 17, 2026
circuitpython

Get the time

import time
now = time.localtime()
month = now[1]
day = now[2]
(hour, minutes, seconds) = now[3:6]

print datetime in isoformat

timestamp.isoformat()