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

From blackwiki
Jump to navigation Jump to search
imported>EX-Chute
imported>EmausBot
m (Bot: Fixing double redirect to Template:Infobox time zone/old/main)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox
+
#REDIRECT [[Template:Infobox time zone/old/main]]
|above        = {{{title|}}}
 
|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}}}]]
 
|label4  = {{{ttint|ETT}}}
 
|data4    = [[{{{toff|UTC−03:00}}}]]
 
|header6  = <span class="noprint">Current time ({{purge|Refresh the clock.}})</span>
 
|label8  = <span class="noprint">{{{ttint|ETT}}}</span>
 
|data8    = {{#ifeq:{{{tst}}}|2|<span class="noprint">{{12-hour time|offset={{{ttoff|-3 hours}}}|abbr=on|format={{{format|dmy}}}}}</span>}}
 
|label9  = <span class="noprint">{{{dtint|EDT}}}</span>
 
|data9    = {{#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}}}{{{tst}}}{{{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}}}}
 
|header28 = Observance of TST
 
|data30  = TST is observed {{#ifeq:{{{use}}}|full|throughout|in certain regions of}} this time zone between the 31st Sunday in May and the 2nd Sunday in August.
 
|label32  = TST ended
 
|data32  = {{#ifeq:{{{tst}}}|0|{{#ifeq:{{{format}}}|mdy|Aug&nbsp;}}{{#expr:8-{{#time:w|0 Aug {{#expr:{{{year}}}-1}}}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Aug}} {{#expr:{{{year}}}-1}}}}
 
|label34  = TST {{#ifeq:{{{tst}}}|0|begins|began}}
 
|data34  = {{#ifeq:{{{tst}}}|2||{{#ifeq:{{{format}}}|mdy|Jun&nbsp;}}{{#expr:12-{{#time:w|0 Jun}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Jun}} {{{year|}}}}}
 
|label36  = TST {{#ifeq:{{{tst}}}|2|ended|ends}}
 
|data36  = {{#ifeq:{{{tst}}}|0||{{#ifeq:{{{format}}}|mdy|Aug&nbsp;}}{{#expr:8-{{#time:w|0 Aug}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Aug}} {{{year|}}}}}
 
|label38  = TST begins
 
|data38  = {{#ifeq:{{{tst}}}|2|{{#ifeq:{{{format}}}|mdy|Jun&nbsp;}}{{#expr:12-{{#time:w|0 Jun {{#expr:{{{year}}}+1}}}}}}{{#ifeq:{{{format}}}|mdy|,|&nbsp;Jun}} {{#expr:{{{year}}}+1}}}}
 
}}
 

Latest revision as of 13:41, 16 June 2018