Template:Daylight saving active
0
This template returns either 0 or 1 to indicate if daylight saving time (DST) is active in the given time zone region:
| 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
{{Daylight saving in time zone | ''time zone abbreviation'' | ''date/time value''}}
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| time zone abbreviation | 1 | 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.
| String | suggested |
| date/time value | 2 | 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.
| Date | optional |
Supported time zones
For each of the following rows, the abbreviation variants (*T, *ST, *DT) of a particular time zone are considered the same region and will produce the same output, thus they can be used interchangeably. But the abbreviation variants may affect the current-offset templates and the current-time templates.
From the list of time zone abbreviations, the following time zones are currently supported:
| Abbreviations | Name | DST currently active?{{Daylight saving active}} |
UTC offset h: {{Current hour offset in time zone}}; m: {{Current minute offset in time zone}} |
Time []{{Current hour in time zone}}:{{Current minute in time zone}} |
Notes for UTC offset and time | |||||
|---|---|---|---|---|---|---|---|---|---|---|
| With DST rule | |dst=no) |
|dst=no) |
With DST rule | |dst=no) |
|dst=no) | |||||
| HST | Hawaii Standard Time | h: -10; m: 0 | h: -10; m: 0 | 15:29 | 15:29 | When dst is NOT set to "no", the *T, *ST and *DT variants of a particular time zone will produce the same output and can be used interchangeably.
Otherwise (when using DST is not observed in Hawaii and in Saskatchewan (except Lloydminster, SK, where MST/MDT is observed). | ||||
| HAT or HAST | HADT | Hawaii-Aleutian Standard/ |
h: -9; m: 0 | h: -10; m: 0 | h: -9; m: 0 | 16:29 | 15:29 | 16:29 | ||
| AKT or AKST | AKDT | Alaska Standard/ |
h: -8; m: 0 | h: -9; m: 0 | h: -8; m: 0 | 17:29 | 16:29 | 17:29 | ||
| PT or PST | PDT | Pacific Standard/ |
h: -7; m: 0 | h: -8; m: 0 | h: -7; m: 0 | 18:29 | 17:29 | 18:29 | ||
| MT or MST | MDT | Mountain Standard/ |
h: -6; m: 0 | h: -7; m: 0 | h: -6; m: 0 | 19:29 | 18:29 | 19:29 | ||
| SKT or SKST | Saskatchewan Standard Time | h: -6; m: 0 | h: -6; m: 0 | 19:29 | 19:29 | |||||
| CT or CST | CDT | Central Standard/ |
h: -5; m: 0 | h: -6; m: 0 | h: -5; m: 0 | 20:29 | 19:29 | 20:29 | ||
| ET or EST | EDT | Eastern Standard/ |
h: -4; m: 0 | h: -5; m: 0 | h: -4; m: 0 | 21:29 | 20:29 | 21:29 | ||
| AT or AST | ADT | Atlantic Standard/ |
h: -3; m: 0 | h: -4; m: 0 | h: -3; m: 0 | 22:29 | 21:29 | 22:29 | ||
| NT or NST | NDT | Newfoundland Standard/ |
h: -2; m: -30 | h: -3; m: -30 | h: -2; m: -30 | 22:59 | 21:59 | 22:59 | ||
| GMT | BST | Greenwich Mean Time / British Summer Time | h: 1; m: 0 | h: 0; m: 0 | h: 1; m: 0 | 02:29 | 01:29 | 02:29 | When dst is NOT set to "no", both the GMT and BST variants of this time zone will produce the same output and can be used interchangeably.
Otherwise (when using | |
| WET | WEST | Western European (Summer) Time | h: 1; m: 0 | h: 0; m: 0 | h: 1; m: 0 | 02:29 | 01:29 | 02:29 | When dst is NOT set to "no", both the *ET and *EST variants of a particular time zone will produce the same output and can be used interchangeably.
Otherwise (when using | |
| CET | CEST | Central European (Summer) Time | h: 2; m: 0 | h: 1; m: 0 | h: 2; m: 0 | 03:29 | 02:29 | 03:29 | ||
| EET | EEST | Eastern European (Summer) Time | h: 3; m: 0 | h: 2; m: 0 | h: 3; m: 0 | 04:29 | 03:29 | 04:29 | ||
| IST | Indian Standard Time | h: 5; m: 30 | h: 5; m: 30 | 06:59 | 06:59 | |||||
| AWT or AWST | Australian Western Standard Time | h: 8; m: 0 | h: 8; m: 0 | 09:29 | 09:29 | When dst is NOT set to "no", the *T, *ST and *DT variants of a particular time zone will produce the same output and can be used interchangeably.
Otherwise (when using DST is not observed in the AWT time zone. | ||||
| ACT or ACST | ACDT | Australian Central Standard/ |
h: 9; m: 30 | h: 9; m: 30 | h: 10; m: 30 | 10:59 | 10:59 | 11:59 | ||
| AET or AEST | AEDT | Australian Eastern Standard/ |
h: 10; m: 0 | h: 10; m: 0 | h: 11; m: 0 | 11:29 | 11:29 | 12:29 | ||
| KST | Korea Standard Time | h: 9; m: 0 | h: 9; m: 0 | 10:29 | 10:29 | DST is not observed in these time zones. It is not necessary to set dst. | ||||
| JST | Japan Standard Time | h: 9; m: 0 | h: 9; m: 0 | 10:29 | 10:29 | |||||
| NZT or NZST | NZDT | New Zealand Standard/ |
h: 12; m: 0 | h: 12; m: 0 | h: 13; m: 0 | 13:29 | 13:29 | 14:29 | When dst is NOT set to "no", the NZT, NZST and NZDT variants of this time zone will produce the same output and can be used interchangeably.
Otherwise (when using | |
| Integer input (e.g. -10) | h: -10; m: -10 | h: -10; m: -10 | 15:19 | 15:19 | Uses the specified hours and the specified minutes as the UTC offset.
e.g. here with UTC−10:10 and UTC+08:08 offsets. | |||||
| Integer input (e.g. 8) | h: 8; m: 8 | h: 8; m: 8 | 09:37 | 09:37 | ||||||
| Empty input | h: 0; m: 0 | h: 0; m: 0 | 01:29 | 01:29 | Follows UTC | |||||
| Unrecognised string (e.g. FOO) | h: 0; m: 0 | h: 0; m: 0 | 01:29 | 01:29 | ||||||
HAT, AKT, PT, MT, CT, ET, AT, NT
- DST begins on the second Sunday in March at 2 a.m. local standard time and ends on the first Sunday in November at 2 a.m. local daylight saving time ().
- 2 a.m. HAST, AKST, PST, MST, CST, EST, AST and NST is 12:00, 11:00, 10:00, 9:00, 8:00, 7:00, 6:00 and 5:30 UTC respectively.
- 2 a.m. HADT, AKDT, PDT, MDT, CDT, EDT, ADT and NDT is 11:00, 10:00, 9:00, 8:00, 7:00, 6:00, 5:00 and 4:30 UTC respectively.
WET, CET, EET
ACT, AET
- DST begins on the first Sunday in October at 2 a.m. local standard time and ends on the first Sunday in April at 3 a.m. local daylight saving time ().
- 2 a.m. ACST and AEST is 16:30 and 16:00 UTC (previous day) respectively, which is an offset of 7:30 hours and 8:00 hours respectively from midnight.
- 3 a.m. ACDT and AEDT is 2 a.m. ACST and AEST is 16:30 and 16:00 UTC (previous day) respectively, which is an offset of 7:30 hours and 8:00 hours respectively from midnight.
NZT
- DST begins on the last Sunday in September at 2 a.m. local standard time and ends on the first Sunday in April at 3 a.m. local daylight saving time ().
- 2 a.m. NZST is 14:00 UTC (previous day), which is an offset of 10:00 hours from midnight.
- 3 a.m. NZDT is 2 a.m. NZST is 14:00 UTC (previous day), which is an offset of 10:00 hours from midnight.
Time zone map
Examples
(You may want to this page to update the output.)
*{{Daylight saving in time zone|CET}}
produces
- 1
*{{Daylight saving in time zone|CEST}}
produces
- 1
*{{Daylight saving in time zone|PT}}
produces
- 1
*{{Daylight saving in time zone|ACT}}
produces
- 0
*{{Daylight saving in time zone|NZT}}
produces
- 0
*{{Daylight saving in time zone|ET|10 March 2018 10:00 EST}}
produces
- 0
*{{Daylight saving in time zone|ET|11 March 2018 4:50 EST}}
produces
- 1
*{{Daylight saving in time zone|ET|11 March 2018 4:50}}
produces
- 0
Related templates
| Based on Module:Time | Based on {{Daylight saving active}} | |
|---|---|---|
| Supported time zones | See Template:Time#Supported time zones | See Template:Daylight saving active/doc/supported time zones |
| Offset related |
|
|
| Daylight saving related (0 when inactive, 1 when active) |
||
| Time related |
|
