A compact, pre-generated MicroPython-compatible timezone lookup library based on the Nayarsystems POSIX TZ database. It updates every week automatically from Nayarsystems, ensuring it is accurate. A new tag is formed on each update.
tz_data.py: Precompiled timezone lookup table (iana → posix)example.py: How to use it
- Upload both
tz_data.pyandexample.pyto your MicroPython board. - Run
example.py.
import tz_data
print(tz_data.lookup("America/New_York")) # Example output: EST5EDT,M3.2.0,M11.1.0