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
- UTC — Coordinated Universal Time, the worldwide reference time that does not change with seasons or time zones.
- DST — Moving clocks forward an hour in spring and back an hour in autumn so evenings have more daylight in summer.
- CEST — Central European Summer Time, the clock used in much of continental Europe in summer, two hours ahead of Coordinated Universal Time.
- breach notification — The legal duty to tell regulators, and sometimes the affected people, that a data breach has happened, within a fixed deadline.
- datetime module — The standard library module for dates and times as real values you can compare, add to and format, not as text.
Taught in
- Data Processing Jobs And CronWorkflows — Certified Argo Project Associate (CAPA) Exam Prep
- Incident Roles, Escalation & Crisis Comm — Cybersecurity Fundamentals, GRC & Cryptography
- Dates, Times And Random — Hands-on Python: Complete Video Course & Book
- From docker run To docker service: Replicas, Global Mode And Updates — Docker Certified Associate (DCA) Exam Prep
- Exam Strategy: Hosts, Help And The Order Of Twenty Tasks — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Containers: Run, Publish, Persist, And Configure The Engine — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Addresses, Gateways And Names On Both Stacks — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Time Sync With chrony: Servers, Zones And Proof — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- LDAP Users Through SSSD — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Drill: From Emergency Mode To A Clean Boot — Linux Foundation Certified System Administrator (LFCS) Exam Prep
- Encodings, Locales And Time Zones — LPIC-1 Linux Administrator (101-500 and 102-500) Exam Prep