Difference between revisions of "Template:Current daylight saving offset in North America"

From blackwiki
Jump to navigation Jump to search
imported>BrandonXLF
(Undid revision 855298658 by JohnBlackburne (talk) Appears errors have been fixed. Will keep a lookout.)
 
(9 intermediate revisions by 6 users not shown)
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}}
+
{{Current daylight saving offset|{{{1|EST}}}}}<noinclude>{{Documentation}}</noinclude>
<noinclude>
 
----
 
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.
 
 
 
{{Current daylight saving offset documentation}}
 
</noinclude>
 

Latest revision as of 02:45, 18 August 2018

  1. REDIRECT Template:Daylight saving offset


  • From a page move: This is a redirect from a page that has been moved (renamed). This page was kept as a redirect to avoid breaking links, both internal and external, that may have been made to the old page name.
Template documentation[view] [edit] [history] [purge]

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

  1. Clocks go forward, value is changed from x to x+1.
  2. Clocks go back, value is changed from x+1 to x.