Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a244bce8ae7d2c38

Jump to content

Template:Daylight saving active/doc

From Wikipedia, the free encyclopedia

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

[edit]
{{Daylight saving in time zone | time zone abbreviation | date/time value}}

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
time zone abbreviation1

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
Stringsuggested
date/time value2

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
Dateoptional

Supported time zones

[edit]

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 [refresh]
{{Current hour in time zone}}:{{Current minute in time zone}}
Notes for UTC offset and time
SDT DST With DST rule SDT (|dst=no) - DST (|dst=no) With DST rule SDT (|dst=no) - DST (|dst=no)
HST Hawaii Standard Time No (0) h: -10; m: 0 h: -10; m: 0 02:10 02:10 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=no), *T and *ST will produce the offset without DST adjustment, and *DT will produce the offset with DST adjustment.

DST is not observed in Hawaii and in Saskatchewan (except Lloydminster, SK, where MST/MDT is observed).

HAT or HAST HADT Hawaii-Aleutian Standard/Daylight Time Yes (1) h: -9; m: 0 h: -10; m: 0 h: -9; m: 0 03:10 02:10 03:10
AKT or AKST AKDT Alaska Standard/Daylight Time Yes (1) h: -8; m: 0 h: -9; m: 0 h: -8; m: 0 04:10 03:10 04:10
PT or PST PDT Pacific Standard/Daylight Time Yes (1) h: -7; m: 0 h: -8; m: 0 h: -7; m: 0 05:10 04:10 05:10
MT or MST MDT Mountain Standard/Daylight Time Yes (1) h: -6; m: 0 h: -7; m: 0 h: -6; m: 0 06:10 05:10 06:10
SKT or SKST Saskatchewan Standard Time No (0) h: -6; m: 0 h: -6; m: 0 06:10 06:10
CT or CST CDT Central Standard/Daylight Time Yes (1) h: -5; m: 0 h: -6; m: 0 h: -5; m: 0 07:10 06:10 07:10
ET or EST EDT Eastern Standard/Daylight Time Yes (1) h: -4; m: 0 h: -5; m: 0 h: -4; m: 0 08:10 07:10 08:10
AT or AST ADT Atlantic Standard/Daylight Time Yes (1) h: -3; m: 0 h: -4; m: 0 h: -3; m: 0 09:10 08:10 09:10
NT or NST NDT Newfoundland Standard/Daylight Time Yes (1) h: -2; m: -30 h: -3; m: -30 h: -2; m: -30 09:40 08:40 09:40
GMT BST Greenwich Mean Time / British Summer Time Yes (1) h: 1; m: 0 h: 0; m: 0 h: 1; m: 0 13:10 12:10 13:10 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 dst=no), GMT will produce the offset without DST adjustment, and BST will produce the offset with DST adjustment.

WET WEST Western European (Summer) Time Yes (1) h: 1; m: 0 h: 0; m: 0 h: 1; m: 0 13:10 12:10 13:10 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 dst=no), *ET will produce the offset without DST adjustment, and *EST will produce the offset with DST adjustment.

CET CEST Central European (Summer) Time Yes (1) h: 2; m: 0 h: 1; m: 0 h: 2; m: 0 14:10 13:10 14:10
EET EEST Eastern European (Summer) Time Yes (1) h: 3; m: 0 h: 2; m: 0 h: 3; m: 0 15:10 14:10 15:10
IST Indian Standard Time No (0) h: 5; m: 30 h: 5; m: 30 17:40 17:40
AWT or AWST Australian Western Standard Time No (0) h: 8; m: 0 h: 8; m: 0 20:10 20:10 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=no), *T and *ST will produce the offset without DST adjustment, and *DT will produce the offset with DST adjustment.

DST is not observed in the AWT time zone.

ACT or ACST ACDT Australian Central Standard/Daylight Time No (0) h: 9; m: 30 h: 9; m: 30 h: 10; m: 30 21:40 21:40 22:40
AET or AEST AEDT Australian Eastern Standard/Daylight Time No (0) h: 10; m: 0 h: 10; m: 0 h: 11; m: 0 22:10 22:10 23:10
KST Korea Standard Time No (0) h: 9; m: 0 h: 9; m: 0 21:10 21:10 DST is not observed in these time zones. It is not necessary to set dst.
JST Japan Standard Time No (0) h: 9; m: 0 h: 9; m: 0 21:10 21:10
NZT or NZST NZDT New Zealand Standard/Daylight Time No (0) h: 12; m: 0 h: 12; m: 0 h: 13; m: 0 00:10 00:10 01:10 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 dst=no), NZT and NZST will produce the offset without DST adjustment, and NZDT will produce the offset with DST adjustment.

Integer input (e.g. -10) No (0) h: -10; m: -10 h: -10; m: -10 02:00 02:00 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) No (0) h: 8; m: 8 h: 8; m: 8 20:18 20:18
Empty input No (0) h: 0; m: 0 h: 0; m: 0 12:10 12:10 Follows UTC
Unrecognised string (e.g. FOO) No (0) h: 0; m: 0 h: 0; m: 0 12:10 12:10

HAT, AKT, PT, MT, CT, ET, AT, NT

[edit]
  • 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

[edit]
  • DST begins on the last Sunday in March at 1:00 UTC and ends on the last Sunday in October at 1:00 UTC ().

ACT, AET

[edit]
  • 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

[edit]
  • 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

[edit]

Examples

[edit]

(You may want to purge 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
[edit]
Current local time 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