pythoncoder wrote: ↑Tue Jul 24, 2018 5:59 amYou should be able to install it using upip as described. What happens when you try?
Alternatively just copy datetime.py from micropython-lib to the ESP32: this should work as it's a simple library comprising just that one file. I have a clone of micropython-lib on my local hardware for such purposes.
Copied to root directory of pyboard, and got this message;
Code: Select all
>>> import datetime Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError: memory allocation failed, allocating 136 bytes >>>