Difference between revisions of "Template:Current daylight saving offset in North America"
Jump to navigation
Jump to search
imported>Sceptre m (parameter) |
imported>Sceptre m (Will, you silly bugger) |
||
| 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= | + | {{#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}} |
<noinclude> | <noinclude> | ||
---- | ---- | ||
| − | |||
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. | 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. | ||
Revision as of 17:57, 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 values between "-5" and "-10". It defaults to EST.