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

From blackwiki
Jump to navigation Jump to search
imported>Thayts
imported>Thayts
Line 68: Line 68:
 
<!--Australian Eastern Time-->
 
<!--Australian Eastern Time-->
 
|AET|AEST|AEDT=
 
|AET|AEST|AEDT=
  {{#ifexpr:
+
  {{#expr:
      <!--November through March-->
+
  {{#time:YmdHi|{{{2|}}}}} <
          ({{#time:n|10 hours}} > 10 or  {{#time:n|10 hours}} < 4)
+
  {{#time:YmdHi|{{#time:Y|{{{2|}}}}}0407-{{#time:w|{{#time:Y|{{{2|}}}}}0407}}days-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=7.5|AET|AEST|AEDT=8}}hours}} or
      <!--date in October after start DST-->
+
  {{#time:YmdHi|{{#time:Y|{{{2|}}}}}1007-{{#time:w|{{#time:Y|{{{2|}}}}}1007}}days-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=7.5|AET|AEST|AEDT=8}}hours}} <=
        or ({{#time:n|10 hours}} = 10 and {{#time:j|10 hours}} > {{#expr:(7 - (5*{{#time:Y}}/4 + 5) mod 7)}})
+
   {{#time:YmdHi|{{{2|}}}}}
      <!--date in April before end DST-->
 
        or ({{#time:n|10 hours}} = 4  and {{#time:j|10 hours}} < {{#expr:(7 - (5*{{#time:Y}}/4 + 4) mod 7)}})
 
      <!--day of start DST after 2 AM local standard time (first Sunday in October)-->
 
        or ({{#time:n|10 hours}} = 10 and {{#time:j|10 hours}} = {{#expr:(7 - (5*{{#time:Y}}/4 + 5) mod 7)}} and {{#time:G|10 hours {{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=-30|0}} minutes}} >= 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|10 hours}} = 4  and {{#time:j|10 hours}} = {{#expr:(7 - (5*{{#time:Y}}/4 + 4) mod 7)}} and {{#time:G|10 hours {{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=-30|0}} minutes}} < 2)
 
   |1 <!--DST active-->
 
  |0 <!--DST not active-->
 
 
  }}
 
  }}
  

Revision as of 20:38, 5 April 2018

0