# *** in version 3.9: ***
from zoneinfo import ZoneInfo
from datetime import datetime
dt = datetime(2021, 2, 17, 12,
tzinfo=ZoneInfo("Europe/Moscow"))
print(dt)
| The zoneinfo module provides a concrete time zone implementation to support the IANA time zone database as originally specified in PEP 615. By default, zoneinfo uses the system’s time zone data if available; if no system time zone data is available, the library will fall back to using the first-party tzdata package available on PyPI. |