Changes

Jump to navigation Jump to search
m
<!--
HOW TO ADD A TIME ZONE

* Add a pipe (|) chain with all the abbreviations of the time zones
for which the same logic is used to calculate the dates at which
DST begins and ends, including both the standard time abbreviation(s)
and daylight saving time abbreviation for each time zone, ending the
chain with an equal sign (=) followed by the logic.

* Update the documentation.

* Also update the technical documentation, found at /techdoc, to
describe at what date and time DST begins and ends as implemented
by the logic.

-->{{#switch:{{uc:{{{1|}}}}}

<!--Saskatchewan Time (except Lloydminster) (Canada)-->
|SKT|SKST=0 <!--no DST-->

<!--Hawaii Standard Time-->
|HST=0 <!--no DST-->

<!--Hawaii-Aleutian Time-->
|HAT|HAST|HADT
<!--Alaska Time-->
|AKT|AKST|AKDT
<!--Pacific Time (Northern America)-->
|PT|PST|PDT
<!--Mountain Time (Northern America)-->
|MT|MST|MDT
<!--Central Time (Northern America)-->
|CT|CST|CDT
<!--Eastern Time (Northern America)-->
|ET|EST|EDT
<!--Atlantic Time-->
|AT|AST|ADT
<!--Newfoundland Time-->
|NT|NST|NDT=
{{#expr:
{{#time:Ymd|{{#time:Y|{{{2|}}}}}0314-{{#time:w|{{#time:Y|{{{2|}}}}}0314}}days}}{{#switch:{{uc:{{{1}}}}}|HAT|HAST|HADT=1200|AKT|AKST|AKDT=1100|PT|PST|PDT=1000|MT|MST|MDT=0900|CT|CST|CDT=0800|ET|EST|EDT=0700|AT|AST|ADT=0600|NT|NST|NDT=0530}} <=
{{#time:YmdHi|{{{2|}}}}} and
{{#time:YmdHi|{{{2|}}}}} <
{{#time:Ymd|{{#time:Y|{{{2|}}}}}1107-{{#time:w|{{#time:Y|{{{2|}}}}}1107}}days}}{{#switch:{{uc:{{{1}}}}}|HAT|HAST|HADT=1100|AKT|AKST|AKDT=1000|PT|PST|PDT=0900|MT|MST|MDT=0800|CT|CST|CDT=0700|ET|EST|EDT=0600|AT|AST|ADT=0500|NT|NST|NDT=0430}}
}}

<!--Greenwich Mean Time / British Summer Time (same as WET / WEST)-->
|GMT|BST
<!--Western European Time-->
|WET|WEST
<!--Central European Time-->
|CET|CEST
<!--Eastern European Time-->
|EET|EEST=
{{#expr:
{{#time:Ymd|{{#time:Y|{{{2|}}}}}0331-{{#time:w|{{#time:Y|{{{2|}}}}}0331}}days}}01 <=
{{#time:YmdH|{{{2|}}}}} and
{{#time:YmdH|{{{2|}}}}} <
{{#time:Ymd|{{#time:Y|{{{2|}}}}}1031-{{#time:w|{{#time:Y|{{{2|}}}}}1031}}days}}01
}}

<!--Australian Western Time-->
|AWT|AWST=0 <!--no DST-->

<!--Australian Central Time-->
|ACT|ACST|ACDT
<!--Australian Eastern Time-->
|AET|AEST|AEDT=
{{#expr:
{{#time:YmdHi|{{{2|}}}}} <
{{#time:YmdHi|{{#time:Y|{{{2|}}}}}0407-{{#time:w|{{#time:Y|{{{2|}}}}}0407}}days-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=7|AET|AEST|AEDT=8}}hours-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=30|AET|AEST|AEDT=0}}minutes}} or
{{#time:YmdHi|{{#time:Y|{{{2|}}}}}1007-{{#time:w|{{#time:Y|{{{2|}}}}}1007}}days-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=7|AET|AEST|AEDT=8}}hours-{{#switch:{{uc:{{{1}}}}}|ACT|ACST|ACDT=30|AET|AEST|AEDT=0}}minutes}} <=
{{#time:YmdHi|{{{2|}}}}}
}}

<!--Korea Standard Time-->
|KST=0 <!--no DST-->

<!--Japan Standard Time-->
|JST=0 <!--no DST-->

<!--New Zealand Time-->
|NZT|NZST|NZDT=
{{#expr:
{{#time:YmdH|{{{2|}}}}} <
{{#time:YmdH|{{#time:Y|{{{2|}}}}}0407-{{#time:w|{{#time:Y|{{{2|}}}}}0407}}days-10hours}} or
{{#time:YmdH|{{#time:Y|{{{2|}}}}}0930-{{#time:w|{{#time:Y|{{{2|}}}}}0930}}days-10hours}} <=
{{#time:YmdH|{{{2|}}}}}
}}

<!--default-->
|0
}}<noinclude>
{{documentation}}
[[Category:Date-computing templates based on current time]]</noinclude>
Anonymous user

Navigation menu