π DST Simulator
Explore daylight saving time transitions and discover the mysterious hours that don't exist or happen twice. Pick a timezone and scrub through the spring forward and fall back periods.
π Spring Forward
Date: March 9, 2025
Time: 02:00
Change: UTC-5 β UTC-4
What Happens?
Clocks spring forward, skipping one hour. Times like 2:30 AM don't exist.
Interactive Timeline
01:0002:0003:0004:00
Current Time
NONEXISTENT
This time does not exist!
UTC Time
07:30:00
Always reliable
Offset
UTC-5
From UTC
How to Handle This in Code
from datetime import datetime
from zoneinfo import ZoneInfo
# Attempting to create nonexistent time
try:
dt = datetime(2025, 2, 9, 2, 30, tzinfo=ZoneInfo("America/New_York"))
print(f"Created: {dt}")
except Exception as e:
print(f"Error: {e}")
# Safe approach - use UTC first
utc_dt = datetime(2025, 2, 9, 7, 30, tzinfo=ZoneInfo("UTC"))
local_dt = utc_dt.astimezone(ZoneInfo("America/New_York"))
print(f"Safe conversion: {local_dt}")