Changes
Jump to navigation
Jump to search
Template:Current minute offset in time zone (view source)
Revision as of 10:12, 21 August 2018
, 6 years agoReverted to revision 618802614 by Thayts (talk): Restore to version before disruptive edits, to try and fix Userbox errors. (TW)
<!--
HOW TO ADD A TIME ZONE
* Add a pipe (|) chain with all the abbreviations of the time zone,
including both the standard time abbreviation(s) and daylight saving
time abbreviation, ending the line with an equal sign (=) followed
by the minute offset from UTC during /standard/ time.
Example: |abbr1|abbr2|abbr3=-30
* Update the documentation.
* Add the time zone to Template:Current_hour_offset_in_time_zone.
NOTE: Time zones with 0 offset are included for completeness.
-->{{#switch:{{uc:{{{1|}}}}}
<!--Hawaii Standard Time-->
|HST=0
<!--Hawaii-Aleutian Time-->
|HAT|HAST|HADT=0
<!--Alaska Time-->
|AKT|AKST|AKDT=0
<!--Pacific Time (Northern America)-->
|PT|PST|PDT=0
<!--Mountain Time (Northern America)-->
|MT|MST|MDT=0
<!--Saskatchewan Time (except Lloydminster, SK) (Canada)-->
|SKT|SKST=0
<!--Central Time (Northern America)-->
|CT|CST|CDT=0
<!--Eastern Time (Northern America)-->
|ET|EST|EDT=0
<!--Atlantic Time-->
|AT|AST|ADT=0
<!--Newfoundland Time-->
|NT|NST|NDT=-30
<!--Greenwich Mean Time / British Summer Time (same as WET / WEST)-->
|GMT|BST=0
<!--Western European Time-->
|WET|WEST=0
<!--Central European Time-->
|CET|CEST=0
<!--Eastern European Time-->
|EET|EEST=0
<!--Australian Western Time-->
|AWT|AWST=0
<!--Australian Central Time-->
|ACT|ACST|ACDT=30
<!--Australian Eastern Time-->
|AET|AEST|AEDT=0
<!--Korea Standard Time-->
|KST=0
<!--Japan Standard Time-->
|JST=0
<!--New Zealand Time-->
|NZT|NZST|NZDT=0
<!--default (input offset, or otherwise 0)-->
|{{#iferror:{{#time:i|-{{{1|0}}} minutes}}|0|{{{1|0}}}}}
}}<noinclude>
{{documentation}}
[[Category:Date-computing templates based on current time]]</noinclude>
HOW TO ADD A TIME ZONE
* Add a pipe (|) chain with all the abbreviations of the time zone,
including both the standard time abbreviation(s) and daylight saving
time abbreviation, ending the line with an equal sign (=) followed
by the minute offset from UTC during /standard/ time.
Example: |abbr1|abbr2|abbr3=-30
* Update the documentation.
* Add the time zone to Template:Current_hour_offset_in_time_zone.
NOTE: Time zones with 0 offset are included for completeness.
-->{{#switch:{{uc:{{{1|}}}}}
<!--Hawaii Standard Time-->
|HST=0
<!--Hawaii-Aleutian Time-->
|HAT|HAST|HADT=0
<!--Alaska Time-->
|AKT|AKST|AKDT=0
<!--Pacific Time (Northern America)-->
|PT|PST|PDT=0
<!--Mountain Time (Northern America)-->
|MT|MST|MDT=0
<!--Saskatchewan Time (except Lloydminster, SK) (Canada)-->
|SKT|SKST=0
<!--Central Time (Northern America)-->
|CT|CST|CDT=0
<!--Eastern Time (Northern America)-->
|ET|EST|EDT=0
<!--Atlantic Time-->
|AT|AST|ADT=0
<!--Newfoundland Time-->
|NT|NST|NDT=-30
<!--Greenwich Mean Time / British Summer Time (same as WET / WEST)-->
|GMT|BST=0
<!--Western European Time-->
|WET|WEST=0
<!--Central European Time-->
|CET|CEST=0
<!--Eastern European Time-->
|EET|EEST=0
<!--Australian Western Time-->
|AWT|AWST=0
<!--Australian Central Time-->
|ACT|ACST|ACDT=30
<!--Australian Eastern Time-->
|AET|AEST|AEDT=0
<!--Korea Standard Time-->
|KST=0
<!--Japan Standard Time-->
|JST=0
<!--New Zealand Time-->
|NZT|NZST|NZDT=0
<!--default (input offset, or otherwise 0)-->
|{{#iferror:{{#time:i|-{{{1|0}}} minutes}}|0|{{{1|0}}}}}
}}<noinclude>
{{documentation}}
[[Category:Date-computing templates based on current time]]</noinclude>