time zone

A region that shares the same offset from Coordinated Universal Time, including its daylight saving rules.

In more detail

A datetime without a time zone is called naive and is ambiguous once data crosses zones; an aware one carries its zone. Store and compare times in UTC and convert to local time only for display.

Examples

berlin, utc = ZoneInfo("Europe/Berlin"), ZoneInfo("UTC")
due = (aware.astimezone(utc) + timedelta(hours=72)).astimezone(berlin)

Related terms

Taught in

References

Certification courses