MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
-
Updated
Sep 12, 2020 - C
After #1107 is merged, let's replace client.use_passphrase("passphrase")
with setup_client(passphrase="passphrase")
where applicable.
Add a description, image, and links to the micropython topic page so that developers can more easily learn about it.
To associate your repository with the micropython topic, visit your repo's landing page and select "manage topics."
I wont to convert a unixtimestamp to localtime in circuit python.
This is the simple code:
unix_correction = 946684800 # correct to 01-01-2000
timezone = 7200
t=1598887049
def convertUnixTime(t,timezone):
dummy=time.localtime(t-unix_correction+timezone)
return "%4d-%02d-%02d %02d:%02d" % (dummy[0],dummy[1],dummy[2],dummy[3],dummy[4])
Running it I get the error message:
"time