Skip to content

Glossary: Python Beyond the Basics

ZoneInfo

Also written: zoneinfo, time zone, astimezone, tzdata

A class from the `zoneinfo` module that attaches a time zone, such as "America/Los_Angeles", to a datetime. Windows needs `pip install tzdata` first.

Where the book teaches it

Related terms

datetime / timedelta