

Tzdata are available, all calls to ZoneInfo will raise Is recommended to declare a dependency on tzdata. Projects targeting cross-platform compatibility that require time zone data, it Notably Windows systems, do not have an IANA database available, and so for Pulls time zone information from the system time zone database or theįirst-party PyPI package tzdata, if available. The zoneinfo module does not directly provide time zone data, and instead

astimezone ( LOS_ANGELES )) 01:00:00-07:00 > # After the PDT -> PST transition > print (( dt_utc + timedelta ( hours = 1 )). utc ) > # Before the PDT -> PST transition > print ( dt_utc. from datetime import timezone > LOS_ANGELES = ZoneInfo ( "America/Los_Angeles" ) > dt_utc = datetime ( 2020, 11, 1, 8, tzinfo = timezone.
