Difference between revisions of "Template:Current daylight saving offset in North America"
Jump to navigation
Jump to search
Template documentation
Line 1: | Line 1: | ||
{{#expr: {{CURRENTYEAR}}03{{#ifexpr: {{weekday in month|second|sunday|march|{{CURRENTYEAR}}}} < 10 | 0}}{{weekday in month|second|sunday|march|{{CURRENTYEAR}}}}{{#switch:{{{offset}}}|-3.5|-3:30=05|-4=06|-5=07|-6=08|-7=09|-8=10|-9=11|-10=12|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00 < {{CURRENTTIMESTAMP}} and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}110{{weekday in month|first|sunday|november|{{CURRENTYEAR}}}}{{#switch:{{{offset}}}|-3.5|-3:30=05|-4=06|-5=07|-6=08|-7=09|-8=10|-9=11|-10=12|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00}} | {{#expr: {{CURRENTYEAR}}03{{#ifexpr: {{weekday in month|second|sunday|march|{{CURRENTYEAR}}}} < 10 | 0}}{{weekday in month|second|sunday|march|{{CURRENTYEAR}}}}{{#switch:{{{offset}}}|-3.5|-3:30=05|-4=06|-5=07|-6=08|-7=09|-8=10|-9=11|-10=12|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00 < {{CURRENTTIMESTAMP}} and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}110{{weekday in month|first|sunday|november|{{CURRENTYEAR}}}}{{#switch:{{{offset}}}|-3.5|-3:30=05|-4=06|-5=07|-6=08|-7=09|-8=10|-9=11|-10=12|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00}} | ||
<noinclude> | <noinclude> | ||
− | + | {{documentation|content= | |
This template automatically changes twice a year, changing to "1" on the second Sunday of March at 2:00am LT and changing to "0" on the first Sunday of November at 2:00am LT. | This template automatically changes twice a year, changing to "1" on the second Sunday of March at 2:00am LT and changing to "0" on the first Sunday of November at 2:00am LT. | ||
Line 7: | Line 7: | ||
{{Current daylight saving offset documentation}} | {{Current daylight saving offset documentation}} | ||
+ | }} | ||
</noinclude> | </noinclude> |
Revision as of 22:47, 14 January 2011
Expression error: Unrecognized word "strong".

This template automatically changes twice a year, changing to "1" on the second Sunday of March at 2:00am LT and changing to "0" on the first Sunday of November at 2:00am LT.
The parameter "offset" is for alternate UTC offsets and takes the values "-3.5", "-3:30", and any integer between "-4" and "-10". It defaults to EST.
Usage
This template gives the current daylight saving offset in North America. The local time depends on the time zone. This template will automate the changes in daylight saving offset.
Summer Time[{{fullurl:Template:Transclude|action=edit}} edit] | ||
---|---|---|
Year | Summer Time begins/ends[1] on |
Summer Time ends/begins[2] on |
2025 | Template:Weekday in month March | Template:Weekday in month November |
2026 | Template:Weekday in month March | Template:Weekday in month November |
2027 | Template:Weekday in month March | Template:Weekday in month November |
2028 | Template:Weekday in month March | Template:Weekday in month November |
2029 | Template:Weekday in month March | Template:Weekday in month November |
2030 | Template:Weekday in month March | Template:Weekday in month November |
2031 | Template:Weekday in month March | Template:Weekday in month November |
Notes
The above documentation is transcluded from Template:Current daylight saving offset in North America/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |