Timekeeping

TZ Environment Variable

Always valid:
<STD>0:00
No DST: permanent STD time
<STD>0:00<DST>-1:00,J1/0:00,J1/1:00
Every DST interval ends as it starts: permanent STD time
<STD>0:00<DST>-1:00,J1/-1,J365/+24
Every DST interval ends at the start of the next: permanent DST
<STD>0:00<DST>,M4.1.0,M10.1.0
The end time follows the start time of every rule instance: STD time in effect outside these intervals
<STD>0:00<DST>,M10.1.0,M4.1.0
The end time precedes the start time of every rule instance: DST in effect outside these intervals
<STD>0:00<DST>-1:00,M4.1.0,M10.1.0
DST is ahead of STD time: normal DST and STD roles
<STD>0:00<DST>+1:00,M4.1.0,M10.1.0
DST is behind STD time: reversed DST and STD roles
<STD>0:00<DST>,J1/-48,J1/-24
Endpoint before start of year
<STD>0:00<DST>,J365/+48,J365/+72
Endpoint after end of year
<STD>0:00<DST>,M4.1.0,M10.1.0
Endpoints by weekday of month
<STD>0:00<DST>,M3.5.0,M10.5.0
Endpoints by last weekday of month
<STD>0:00<DST>,J80,J264
Endpoints by day of year, not counting 29 Feb
<STD>0:00<DST>,79,263
Endpoints by days from start of year, including 29 Feb
permanent dst/std depending on leap year or weekday shift
Only valid for a limited time:
<STD>0:00<DST>,J1/-24,J365/+48
Every DST interval overlaps the previous
<STD>0:00<DST>-1:00,0/-1,365/+12
Every DST interval starting in a non-leap year overlaps the next
<STD>0:00<DST>-1:00,M1.1.1/-1,M12.5.0/+48
Every DST interval starting on 1 Jan overlaps the previous
<STD>0:00<DST>,M1.1.0,M1.1.1
Order of endpoints differs when 1 Jan is a Monday