34. Lektion: NTP/RTC

From Attraktor Wiki
Revision as of 21:55, 19 November 2023 by Kapest (talk | contribs) (Created page with "===== Unix-Zeit===== ACHTUNG ESP32 und Pico arbeiten mit unterschiedlichen Epochen: <pre> MicroPython v1.20.0 on 2023-04-26; Raspberry Pi Pico W with RP2040 >>> import time >>...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Unix-Zeit

ACHTUNG ESP32 und Pico arbeiten mit unterschiedlichen Epochen:

MicroPython v1.20.0 on 2023-04-26; Raspberry Pi Pico W with RP2040
>>> import time
>>> time.gmtime(0)
(1970, 1, 1, 0, 0, 0, 3, 1)
>>> 
MicroPython v1.20.0 on 2023-04-26; ESP32 module with ESP32
>>> import time
>>> time.gmtime(0)
(2000, 1, 1, 0, 0, 0, 5, 1)
>>>