Open main menu

Changes

no edit summary
{{Documentation subpage}}
This template returns either 0 or 1 to indicate if [[daylight saving time]] (DST) is active in the given [[time zone]] region:

{| class="wikitable"
|-
|  '''0''' 
| DST is not active
|-
|  '''1''' 
| DST is active
|}

See below for the currently supported time zones. Note that if DST is only partially observed in a certain time zone, this template returns 1 if DST is active in that part (even though it is not observed/active in the other part).

During DST, the clock is set one hour ahead of standard time.

==Usage==
{{Pre|{{((}}Daylight saving in time zone {{!}} ''time zone abbreviation'' {{!}} ''date/time value''{{))}}}}

<templatedata>
{
"params": {
"1": {
"label": "time zone abbreviation",
"description": "Abbreviation of the time zone for which it is determined if DST is active. If no time zone is given or if the given time zone is not supported, then the output will default to 0.",
"example": "CET",
"type": "string",
"suggested": true
},
"2": {
"label": "date/time value",
"description": "Date and time for which it is determined if DST would be active in the given time zone. By default, if no value is given, it is determined if DST is active at the current time.",
"example": "6 April 2018 23:00 CET",
"type": "date"
}
},
"format": "inline",
"description": " "
}
</templatedata>

==Supported time zones==
From the [[list of time zone abbreviations]], the following time zones are currently supported:
{| class="wikitable"
|-
! colspan="2" | {{nowrap|[[File:Snow flake icon.png|24px|alt=SDT&nbsp;-|link=Standard time|Standard time abbreviation]]&nbsp;Abbreviations&nbsp;[[File:Crystal sun.png|24px|alt=-&nbsp;DST|link=Daylight saving time|Daylight saving time abbreviation]]}}
! Name
! colspan="2" | {{nowrap|[[File:Snow flake icon.png|24px|alt=SDT&nbsp;-|link=Standard time|Standard time offset]]&nbsp;{{Purge|Offset}}&nbsp;[[File:Crystal sun.png|24px|alt=-&nbsp;DST|link=Daylight saving time|Daylight saving time offset]]}}
! Notes
|-
| '''HST'''
|
| Hawaii Standard Time
| colspan="2" style="text-align:center" | UTC−10:00
| rowspan="10" | The *T, *ST and *DT variants of a particular time zone are considered the same region and will produce the same output, thus they can be used interchangeably.

DST is not observed in [[Hawaii]] and in [[Time in Saskatchewan|Saskatchewan, Canada]] (except [[Lloydminster|Lloydminster, SK]], where MST/MDT is observed).

''[[Template:Daylight saving in time zone/techdoc#HAT, AKT, PT, MT, CT, ET, AT, NT|More details on the implementation→]]''
|-
| '''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" | Both the GMT and BST variants of this time zone are considered the same region and will produce the same output, thus they can be used interchangeably.
''This time zone is essentially the same as WET/WEST, see below for more details.''
|-
| 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" rowspan="3" | Both the *ET and *EST variants of a particular time zone are considered the same region and will produce the same output, thus they can be used interchangeably.
''[[Template:Daylight saving in time zone/techdoc#WET, CET, EET|More details on the implementation→]]''
|-
| 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
| rowspan="3" | The *T, *ST and *DT variants of a particular time zone are considered the same region and will produce the same output, thus they can be used interchangeably.
DST is not observed in the AWT time zone.

''[[Template:Daylight saving in time zone/techdoc#ACT, AET|More details on the implementation→]]''
|-
| '''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" rowspan="2" | DST is not observed in these time zones.
|-
| 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
| The NZT, NZST and NZDT variants of this time zone are considered the same region and will produce the same output, thus they can be used interchangeably.
''[[Template:Daylight saving in time zone/techdoc#NZT|More details on the implementation→]]''
|}

==Time zone map==
[[File:Worldwide Time Zones (including DST).png|center|800px]]

==Examples==
<small>(You may want to {{Purge|purge}} this page to update the output.)</small>


<pre>*{{Daylight saving in time zone|CET}}</pre>
produces
*{{Daylight saving in time zone|CET}}


<pre>*{{Daylight saving in time zone|CEST}}</pre>
produces
*{{Daylight saving in time zone|CEST}}


<pre>*{{Daylight saving in time zone|PT}}</pre>
produces
*{{Daylight saving in time zone|PT}}


<pre>*{{Daylight saving in time zone|ACT}}</pre>
produces
*{{Daylight saving in time zone|ACT}}


<pre>*{{Daylight saving in time zone|NZT}}</pre>
produces
*{{Daylight saving in time zone|NZT}}


<pre>*{{Daylight saving in time zone|ET|10 March 2018 10:00 EST}}</pre>
produces
*{{Daylight saving in time zone|ET|10 March 2018 10:00 EST}}


<pre>*{{Daylight saving in time zone|ET|11 March 2018 4:50 EST}}</pre>
produces
*{{Daylight saving in time zone|ET|11 March 2018 4:50 EST}}


<pre>*{{Daylight saving in time zone|ET|11 March 2018 4:50}}</pre>
produces
*{{Daylight saving in time zone|ET|11 March 2018 4:50}}

==Related templates==
{{Current time templates}}
Anonymous user