PyDocs

Data Types

zoneinfo

not WASI

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.
Symbols in zoneinfo

a

available_timezones
Returns a set containing all available time zones.

i

InvalidTZPathWarning
Warning raised if an invalid path is specified in PYTHONTZPATH.

r

reset_tzpath
Reset global TZPATH.

t

TZPATH
A read-only sequence representing the time zone search path – when constructing a ZoneInfo from a key, the key is joined to each entry in the TZPATH, and the first file found is used.

z

ZoneInfo
A concrete datetime.tzinfo subclass that represents an IANA time zone specified by the string key.
ZoneInfoNotFoundError
Exception raised when a ZoneInfo key is not found.