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

From blackwiki
Jump to navigation Jump to search
imported>Sceptre
m (Will, you silly bugger)
imported>Sceptre
m (for AST and NST)
Line 1: Line 1:
{{#expr: {{CURRENTYEAR}}03{{#ifexpr: {{Nth weekday of month|{{CURRENTYEAR}}|3|0|2}} < 10 | 0}}{{Nth weekday of month|{{CURRENTYEAR}}|3|0|2}}{{#switch:{{{offset}}}|-5=06|-6=07|-7=08|-8=09|-9=10|-10=11|#default=06}}0000 < {{CURRENTTIMESTAMP}} and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}110{{Nth weekday of month|{{CURRENTYEAR}}|11|0|1}}{{#switch:{{{offset}}}|-5=06|-6=07|-7=08|-8=09|-9=10|-10=11|#default=06}}0000}}
+
{{#expr: {{CURRENTYEAR}}03{{#ifexpr: {{Nth weekday of month|{{CURRENTYEAR}}|3|0|2}} < 10 | 0}}{{Nth weekday of month|{{CURRENTYEAR}}|3|0|2}}{{#switch:{{{offset}}}|-3.5|-3:30=04|-4=05|-5=06|-6=07|-7=08|-8=09|-9=10|-10=11|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00 < {{CURRENTTIMESTAMP}} and {{CURRENTTIMESTAMP}} <= {{CURRENTYEAR}}110{{Nth weekday of month|{{CURRENTYEAR}}|11|0|1}}{{#switch:{{{offset}}}|-3.5|-3:30=04|-4=05|-5=06|-6=07|-7=08|-8=09|-9=10|-10=11|#default=06}}{{#switch:{{{offset}}}|-3.5|-3:30=30|#default=00}}00}}
 
<noinclude>
 
<noinclude>
 
----
 
----
Line 6: Line 6:
 
The changes are automated.
 
The changes are automated.
  
The parameter "offset" is for alternate UTC offsets and takes values between "-5" and "-10". It defaults to EST.
+
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.
  
 
[[Category:Current daylight-saving offset templates]]
 
[[Category:Current daylight-saving offset templates]]

Revision as of 23:32, 11 March 2008

Expression error: Unrecognized word "strong".


This template should be edited twice a year, when North America's clocks go back and forward, to make it 0 in winter and 1 in summer.

The changes are automated.

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.