Edge Rewrite
Jump to content

Template:Current minute offset in time zone/doc

From Wikipedia, the free encyclopedia

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

The minute offset of standard time does not differ from the minute offset of daylight saving time (DST; if applicable).

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 12:06 12:06 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 13:06 12:06 13:06
AKT or AKST AKDT Alaska Standard/Daylight Time Yes (1) h: -8; m: 0 h: -9; m: 0 h: -8; m: 0 14:06 13:06 14:06
PT or PST PDT Pacific Standard/Daylight Time Yes (1) h: -7; m: 0 h: -8; m: 0 h: -7; m: 0 15:06 14:06 15:06
MT or MST MDT Mountain Standard/Daylight Time Yes (1) h: -6; m: 0 h: -7; m: 0 h: -6; m: 0 16:06 15:06 16:06
SKT or SKST Saskatchewan Standard Time No (0) h: -6; m: 0 h: -6; m: 0 16:06 16:06
CT or CST CDT Central Standard/Daylight Time Yes (1) h: -5; m: 0 h: -6; m: 0 h: -5; m: 0 17:06 16:06 17:06
ET or EST EDT Eastern Standard/Daylight Time Yes (1) h: -4; m: 0 h: -5; m: 0 h: -4; m: 0 18:06 17:06 18:06
AT or AST ADT Atlantic Standard/Daylight Time Yes (1) h: -3; m: 0 h: -4; m: 0 h: -3; m: 0 19:06 18:06 19:06
NT or NST NDT Newfoundland Standard/Daylight Time Yes (1) h: -2; m: -30 h: -3; m: -30 h: -2; m: -30 19:36 18:36 19:36
GMT BST Greenwich Mean Time / British Summer Time Yes (1) h: 1; m: 0 h: 0; m: 0 h: 1; m: 0 23:06 22:06 23:06 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 23:06 22:06 23:06 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 00:06 23:06 00:06
EET EEST Eastern European (Summer) Time Yes (1) h: 3; m: 0 h: 2; m: 0 h: 3; m: 0 01:06 00:06 01:06
IST Indian Standard Time No (0) h: 5; m: 30 h: 5; m: 30 03:36 03:36
AWT or AWST Australian Western Standard Time No (0) h: 8; m: 0 h: 8; m: 0 06:06 06:06 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 07:36 07:36 08:36
AET or AEST AEDT Australian Eastern Standard/Daylight Time No (0) h: 10; m: 0 h: 10; m: 0 h: 11; m: 0 08:06 08:06 09:06
KST Korea Standard Time No (0) h: 9; m: 0 h: 9; m: 0 07:06 07:06 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 07:06 07:06
NZT or NZST NZDT New Zealand Standard/Daylight Time No (0) h: 12; m: 0 h: 12; m: 0 h: 13; m: 0 10:06 10:06 11:06 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 12:56 12:56 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 06:14 06:14
Empty input No (0) h: 0; m: 0 h: 0; m: 0 22:06 22:06 Follows UTC
Unrecognised string (e.g. FOO) No (0) h: 0; m: 0 h: 0; m: 0 22:06 22:06

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
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