Difference between revisions of "Template:Daylight saving active/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Thayts
imported>Thayts
Line 65: Line 65:
 
<!--Australian Central Time-->
 
<!--Australian Central Time-->
 
|ACT|ACST|ACDT
 
|ACT|ACST|ACDT
 
 
<!--Australian Eastern Time-->
 
<!--Australian Eastern Time-->
 
|AET|AEST|AEDT=
 
|AET|AEST|AEDT=
Line 83: Line 82:
 
<!--New Zealand Time-->
 
<!--New Zealand Time-->
 
|NZT|NZST|NZDT=
 
|NZT|NZST|NZDT=
  {{#ifexpr:
+
  {{#expr:
      <!--October through March-->
+
  {{#time:YmdH|{{{2|}}}}} <
          ({{#time:n|12 hours}} > 9 or  {{#time:n|12 hours}} < 4)
+
  {{#time:YmdH|{{#time:Y|{{{2|}}}}}0407-{{#time:w|{{#time:Y|{{{2|}}}}}0407}}days-10hours}} or
      <!--date in September after start DST-->
+
  {{#time:YmdH|{{#time:Y|{{{2|}}}}}0930-{{#time:w|{{#time:Y|{{{2|}}}}}0930}}days-10hours}} <=
        or ({{#time:n|12 hours}} = 9 and {{#time:j|12 hours}} > {{#expr:(30 - (5*{{#time:Y}}/4 + 5) mod 7)}})
+
  {{#time:YmdH|{{{2|}}}}}
      <!--date in April before end DST-->
 
        or ({{#time:n|12 hours}} = 4 and {{#time:j|12 hours}} < {{#expr:(7  - (5*{{#time:Y}}/4 + 4) mod 7)}})
 
      <!--day of start DST after 2 AM local standard time (last Sunday in September)-->
 
        or ({{#time:n|12 hours}} = 9 and {{#time:j|12 hours}} = {{#expr:(30 - (5*{{#time:Y}}/4 + 5) mod 7)}} and {{#time:G|12 hours}} >= 2)
 
      <!--day of end DST before 3 AM local daylight saving time, or 2 AM local standard time (first Sunday in April)-->
 
        or ({{#time:n|12 hours}} = 4 and {{#time:j|12 hours}} = {{#expr:(7  - (5*{{#time:Y}}/4 + 4) mod 7)}} and {{#time:G|12 hours}} < 2)
 
  |1 <!--DST active-->
 
  |0 <!--DST not active-->
 
 
  }}
 
  }}
  

Revision as of 18:11, 6 April 2018

0