Difference between revisions of "Template:Infobox time zone (North America)/main"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
m (Reverted edits by EX-Chute (talk) to last version by Zzyzx11)
imported>BrandonXLF
Line 1: Line 1:
{{Infobox
+
 
|above        = {{{title|}}}
+
#REDIRECT [[Template:Infobox time zone/main]]
|image        = {{{image|}}}
 
|caption      = {{{caption|}}}
 
|headerstyle  = background:#ccf;
 
|labelstyle  = background:#ddf;
 
|header1  = UTC offset
 
|label2  = {{{stint|EST}}}
 
|data2    = [[{{{soff|UTC−05:00}}}]]
 
|label3  = {{{dtint|EDT}}}
 
|data3    = [[{{{doff|UTC−04:00}}}]]
 
|header6  = <span class="noprint">Current time ({{purge|Refresh the clock.}})</span>
 
|label8  = <span class="noprint">{{{dtint|EDT}}}</span>
 
|data8    = {{#ifeq:{{{dst}}}|1|<span class="noprint">{{12-hour time|offset={{{dtoff|-4 hours}}}|abbr=on|format={{{format|dmy}}}}}</span>}}
 
|label10  = <span class="noprint">{{{stint|EST}}}</span>
 
|data10    = {{#ifeq:{{{dst}}}{{{use}}}|1full||<span class="noprint">{{12-hour time|offset={{{stoff|-5 hours}}}|abbr=on|format={{{format|dmy}}}}}</span>}}
 
|header14 = Observance of DST
 
|data16  = DST is observed {{#ifeq:{{{use}}}|full|throughout|in certain regions of}} this time zone between the 2nd Sunday in March and the 1st Sunday in November.
 
|label18  = DST ended
 
|data18  = {{#ifeq:{{{dst}}}|0|{{#ifeq:{{{format}}}|mdy|Nov&nbsp;}}{{#expr:7-{{#time:w|0 Nov {{#expr:{{{year}}}-1}}}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Nov}} {{#expr:{{{year}}}-1}}}}
 
|label20  = DST {{#ifeq:{{{dst}}}|0|begins|began}}
 
|data20  = {{#ifeq:{{{dst}}}|2||{{#ifeq:{{{format}}}|mdy|Mar&nbsp;}}{{#expr:14-{{#time:w|0 Mar}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Mar}} {{{year|}}}}}
 
|label22  = DST {{#ifeq:{{{dst}}}|2|ended|ends}}
 
|data22  = {{#ifeq:{{{dst}}}|0||{{#ifeq:{{{format}}}|mdy|Nov&nbsp;}}{{#expr:7-{{#time:w|0 Nov}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Nov}} {{{year|}}}}}
 
|label24  = DST begins
 
|data24  = {{#ifeq:{{{dst}}}|2|{{#ifeq:{{{format}}}|mdy|Mar&nbsp;}}{{#expr:14-{{#time:w|0 Mar {{#expr:{{{year}}}+1}}}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Mar}} {{#expr:{{{year}}}+1}}}}
 
}}
 

Revision as of 21:56, 27 February 2018