Difference between revisions of "Template:Current minute offset in time zone/doc"
Jump to navigation
Jump to search
imported>Thayts |
imported>Anthony Appleyard m (Anthony Appleyard moved page Template:Current minute offset in time zone/old/doc to Template:Current minute offset in time zone/doc: histmerge) |
||
| Line 1: | Line 1: | ||
| − | + | {{#if:{{{1|}}}||{{Documentation subpage}} | |
| − | This template | + | This template gives the current minute offset from [[UTC]] time for the given [[time zone]]. |
| − | == | + | |
| − | + | It can be used in conjunction with {{tl|Current hour offset in time zone}} to calculate the current time in a particular time zone. See below for the currently supported time zones. | |
| + | |||
| + | ==Usage== | ||
| + | {{Pre|{{((}}Current minute offset in time zone{{!}}''time zone''{{))}}}} | ||
| + | where | ||
| + | *''time zone'' is the desired time zone abbreviation (see below and also the [[list of time zone abbreviations]]);<br />If no time zone is given or if the given time zone is not supported, then the output will default to 0;<br />In this case, instead of giving a time zone, an '''offset''' (e.g. -30, 45, etc.) can also be given;<br />This exact offset will then be used as the output (this functionality is merely included for template compatibility). | ||
| + | |||
| + | ==Supported time zones== | ||
| + | Currently the following time zones are supported:}} | ||
| + | {| class="wikitable" | ||
| + | |- | ||
| + | ! colspan="2" | {{nowrap|[[File:Snow flake icon.png|24px|alt=SDT -|link=Standard time|Standard time abbreviation]] Abbreviations [[File:Crystal sun.png|24px|alt=- DST|link=Daylight saving time|Daylight saving time abbreviation]]}} | ||
| + | ! Name | ||
| + | ! colspan="2" | {{nowrap|[[File:Snow flake icon.png|24px|alt=SDT -|link=Standard time|Standard time offset]] {{Purge|Offset}} [[File:Crystal sun.png|24px|alt=- DST|link=Daylight saving time|Daylight saving time offset]]}} | ||
| + | ! Notes | ||
| + | |- | ||
| + | | '''HST''' | ||
| + | | | ||
| + | | Hawaii Standard Time | ||
| + | | colspan="2" style="text-align:center" | UTC'''−'''10:'''00''' | ||
| + | | rowspan="20" | The minute {{#if:{{{1|}}}||offset}} of standard time does not differ from the minute {{#if:{{{1|}}}||offset}} of [[daylight saving time]] (DST; if applicable). | ||
| + | |- | ||
| + | | '''HAT''' or '''HAST''' | ||
| + | | '''HADT''' | ||
| + | | Hawaii-Aleutian Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|HAT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''10:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|HAT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''09:'''00''' | ||
| + | |- | ||
| + | | '''AKT''' or '''AKST''' | ||
| + | | '''AKDT''' | ||
| + | | Alaska Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AKT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''09:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AKT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''08:'''00''' | ||
| + | |- | ||
| + | | '''PT''' or '''PST''' | ||
| + | | '''PDT''' | ||
| + | | Pacific Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|PT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''08:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|PT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''07:'''00''' | ||
| + | |- | ||
| + | | '''MT''' or '''MST''' | ||
| + | | '''MDT''' | ||
| + | | Mountain Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|MT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''07:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|MT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''06:'''00''' | ||
| + | |- | ||
| + | | '''SKT''' or '''SKST''' | ||
| + | | | ||
| + | | Saskatchewan Standard Time | ||
| + | | colspan="2" style="text-align:center" | UTC'''−'''06:'''00''' | ||
| + | |- | ||
| + | | '''CT''' or '''CST''' | ||
| + | | '''CDT''' | ||
| + | | Central Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|CT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''06:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|CT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''05:'''00''' | ||
| + | |- | ||
| + | | '''ET''' or '''EST''' | ||
| + | | '''EDT''' | ||
| + | | Eastern Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|ET}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''05:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|ET}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''04:'''00''' | ||
| + | |- | ||
| + | | '''AT''' or '''AST''' | ||
| + | | '''ADT''' | ||
| + | | Atlantic Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''04:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''03:'''00''' | ||
| + | |- | ||
| + | | '''NT''' or '''NST''' | ||
| + | | '''NDT''' | ||
| + | | Newfoundland Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|NT}}||style="background-color:#89CFF0"{{!}}}} UTC'''−'''03:'''30''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|NT}}|style="background-color:#89CFF0"{{!}}}} UTC'''−'''02:'''30''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''GMT''' | ||
| + | | style="background-color:#F2F2F2" | '''BST''' | ||
| + | | style="background-color:#F2F2F2" | Greenwich Mean Time /<br />British Summer Time | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|GMT}}|F2F2F2|89CFF0}}" | UTC'''+'''00:'''00''' | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|GMT}}|89CFF0|F2F2F2}}" | UTC'''+'''01:'''00''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''WET''' | ||
| + | | style="background-color:#F2F2F2" | '''WEST''' | ||
| + | | style="background-color:#F2F2F2" | Western European (Summer) Time | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|WET}}|F2F2F2|89CFF0}}" | UTC'''+'''00:'''00''' | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|WET}}|89CFF0|F2F2F2}}" | UTC'''+'''01:'''00''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''CET''' | ||
| + | | style="background-color:#F2F2F2" | '''CEST''' | ||
| + | | style="background-color:#F2F2F2" | Central European (Summer) Time | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|CET}}|F2F2F2|89CFF0}}" | UTC'''+'''01:'''00''' | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|CET}}|89CFF0|F2F2F2}}" | UTC'''+'''02:'''00''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''EET''' | ||
| + | | style="background-color:#F2F2F2" | '''EEST''' | ||
| + | | style="background-color:#F2F2F2" | Eastern European (Summer) Time | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|EET}}|F2F2F2|89CFF0}}" | UTC'''+'''02:'''00''' | ||
| + | | style="background-color:#{{#ifexpr:{{Daylight saving in time zone|EET}}|89CFF0|F2F2F2}}" | UTC'''+'''03:'''00''' | ||
| + | |- | ||
| + | | '''AWT''' or '''AWST''' | ||
| + | | | ||
| + | | Australian Western Standard Time | ||
| + | | colspan="2" style="text-align:center" | UTC'''+'''08:'''00''' | ||
| + | |- | ||
| + | | '''ACT''' or '''ACST''' | ||
| + | | '''ACDT''' | ||
| + | | Australian Central Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|ACT}}||style="background-color:#89CFF0"{{!}}}} UTC'''+'''09:'''30''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|ACT}}|style="background-color:#89CFF0"{{!}}}} UTC'''+'''10:'''30''' | ||
| + | |- | ||
| + | | '''AET''' or '''AEST''' | ||
| + | | '''AEDT''' | ||
| + | | Australian Eastern Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AET}}||style="background-color:#89CFF0"{{!}}}} UTC'''+'''10:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|AET}}|style="background-color:#89CFF0"{{!}}}} UTC'''+'''11:'''00''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''KST''' | ||
| + | | style="background-color:#F2F2F2" | | ||
| + | | style="background-color:#F2F2F2" | Korea Standard Time | ||
| + | | colspan="2" style="background-color:#F2F2F2;text-align:center;" | UTC'''+'''09:'''00''' | ||
| + | |- | ||
| + | | style="background-color:#F2F2F2" | '''JST''' | ||
| + | | style="background-color:#F2F2F2" | | ||
| + | | style="background-color:#F2F2F2" | Japan Standard Time | ||
| + | | colspan="2" style="background-color:#F2F2F2;text-align:center;" | UTC'''+'''09:'''00''' | ||
| + | |- | ||
| + | | '''NZT''' or '''NZST''' | ||
| + | | '''NZDT''' | ||
| + | | New Zealand Standard/Daylight Time | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|NZT}}||style="background-color:#89CFF0"{{!}}}} UTC'''+'''12:'''00''' | ||
| + | | {{#ifexpr:{{Daylight saving in time zone|NZT}}|style="background-color:#89CFF0"{{!}}}} UTC'''+'''13:'''00''' | ||
| + | |} | ||
| + | {{#if:{{{1|}}}|| | ||
| + | ==Time zone map== | ||
| + | [[File:Worldwide Time Zones (including DST).png|center|800px]] | ||
| + | |||
==Examples== | ==Examples== | ||
| − | + | <pre>*{{Current minute offset in time zone|CET}}</pre> | |
| − | + | produces | |
| − | + | *{{Current minute offset in time zone|CET}} | |
| − | *{{ | + | |
| − | + | ||
| − | + | <pre>*{{Current minute offset in time zone|ACT}}</pre> | |
| − | *{{ | + | produces |
| − | + | *{{Current minute offset in time zone|ACT}} | |
| − | + | ||
| − | *{{ | + | |
| − | + | <pre>*{{Current minute offset in time zone|NT}}</pre> | |
| − | + | produces | |
| − | *{{Current minute offset in time zone| | + | *{{Current minute offset in time zone|NT}} |
| − | + | ||
| + | |||
| + | <pre>*{{Current minute offset in time zone|45}}</pre> | ||
| + | produces | ||
| + | *{{Current minute offset in time zone|45}} | ||
| + | |||
| + | |||
| + | <pre>*{{Current minute offset in time zone}}</pre> | ||
| + | produces | ||
| + | *{{Current minute offset in time zone}} | ||
| − | {{ | + | ==Related templates== |
| + | *{{tl|Current hour offset in time zone}} | ||
| + | *{{tl|Current hour in time zone}} | ||
| + | *{{tl|Current minute in time zone}} | ||
| + | *{{tl|Daylight saving in time zone}} | ||
| + | }} | ||
Revision as of 04:40, 21 August 2018
| 40px | This is a documentation subpage for Template:Current minute offset in time zone. It contains usage information, categories and other content that is not part of the original template page. |
This template gives the current minute offset from UTC time for the given time zone.
It can be used in conjunction with {{Current hour offset in time zone}} to calculate the current time in a particular time zone. See below for the currently supported time zones.
Usage
{{Current minute offset in time zone|time zone}}
where
- time zone is the desired time zone abbreviation (see below and also the list of time zone abbreviations);
If no time zone is given or if the given time zone is not supported, then the output will default to 0;
In this case, instead of giving a time zone, an offset (e.g. -30, 45, etc.) can also be given;
This exact offset will then be used as the output (this functionality is merely included for template compatibility).
Supported time zones
Currently the following time zones are supported:
| Standard time abbreviation Abbreviations Daylight saving time abbreviation | Name | Standard time offset Script error: No such module "Purge". Daylight saving time offset | Notes | ||
|---|---|---|---|---|---|
| HST | Hawaii Standard Time | UTC−10:00 | The minute offset of standard time does not differ from the minute offset of daylight saving time (DST; if applicable). | ||
| HAT or HAST | HADT | Hawaii-Aleutian Standard/Daylight Time | UTC−10:00 | UTC−09:00 | |
| AKT or AKST | AKDT | Alaska Standard/Daylight Time | UTC−09:00 | UTC−08:00 | |
| PT or PST | PDT | Pacific Standard/Daylight Time | UTC−08:00 | UTC−07:00 | |
| MT or MST | MDT | Mountain Standard/Daylight Time | UTC−07:00 | UTC−06:00 | |
| SKT or SKST | Saskatchewan Standard Time | UTC−06:00 | |||
| CT or CST | CDT | Central Standard/Daylight Time | UTC−06:00 | UTC−05:00 | |
| ET or EST | EDT | Eastern Standard/Daylight Time | UTC−05:00 | UTC−04:00 | |
| AT or AST | ADT | Atlantic Standard/Daylight Time | UTC−04:00 | UTC−03:00 | |
| NT or NST | NDT | Newfoundland Standard/Daylight Time | UTC−03:30 | UTC−02:30 | |
| GMT | BST | Greenwich Mean Time / British Summer Time |
UTC+00:00 | UTC+01:00 | |
| WET | WEST | Western European (Summer) Time | UTC+00:00 | UTC+01:00 | |
| CET | CEST | Central European (Summer) Time | UTC+01:00 | UTC+02:00 | |
| EET | EEST | Eastern European (Summer) Time | UTC+02:00 | UTC+03:00 | |
| AWT or AWST | Australian Western Standard Time | UTC+08:00 | |||
| ACT or ACST | ACDT | Australian Central Standard/Daylight Time | UTC+09:30 | UTC+10:30 | |
| AET or AEST | AEDT | Australian Eastern Standard/Daylight Time | UTC+10:00 | UTC+11:00 | |
| KST | Korea Standard Time | UTC+09:00 | |||
| JST | Japan Standard Time | UTC+09:00 | |||
| NZT or NZST | NZDT | New Zealand Standard/Daylight Time | UTC+12:00 | UTC+13:00 | |
Time zone map
Examples
*{{Current minute offset in time zone|CET}}
produces
- 0
*{{Current minute offset in time zone|ACT}}
produces
- 30
*{{Current minute offset in time zone|NT}}
produces
- -30
*{{Current minute offset in time zone|45}}
produces
- 45
*{{Current minute offset in time zone}}
produces
- 0