Template:Current hour offset in time zone
0
This template gives the current hour offset from UTC time for the given time zone.
If the dst parameter is not used, it uses {{Daylight saving in time zone}} to automatically adjust the offset according to daylight saving time (DST), if applicable.
This template can be used in conjunction with {{Current minute offset in time zone}} to calculate the current time in a particular time zone. See below for the currently supported time zones.
Usage
{{Current hour offset in time zone|time zone[|dst=no]}}
- (
[...]means optional, do not include the square brackets when using this template)
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. -3, 1, 5, etc.) can also be given;
This exact offset will then be used as the output (this functionality is merely included for template compatibility); dstis an optional parameter to disable automatic daylight saving time adjustment by setting the value to "no";
If a DST variant of a particular time zone exists, then the time is automatically adjusted according to DST by default.
Supported time zones
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 | 10:55 | 10:55 | 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 | 11:55 | 10:55 | 11:55 | ||
| AKT or AKST | AKDT | Alaska Standard/ |
h: -8; m: 0 | h: -9; m: 0 | h: -8; m: 0 | 12:55 | 11:55 | 12:55 | ||
| PT or PST | PDT | Pacific Standard/ |
h: -7; m: 0 | h: -8; m: 0 | h: -7; m: 0 | 13:55 | 12:55 | 13:55 | ||
| MT or MST | MDT | Mountain Standard/ |
h: -6; m: 0 | h: -7; m: 0 | h: -6; m: 0 | 14:55 | 13:55 | 14:55 | ||
| SKT or SKST | Saskatchewan Standard Time | h: -6; m: 0 | h: -6; m: 0 | 14:55 | 14:55 | |||||
| CT or CST | CDT | Central Standard/ |
h: -5; m: 0 | h: -6; m: 0 | h: -5; m: 0 | 15:55 | 14:55 | 15:55 | ||
| ET or EST | EDT | Eastern Standard/ |
h: -4; m: 0 | h: -5; m: 0 | h: -4; m: 0 | 16:55 | 15:55 | 16:55 | ||
| AT or AST | ADT | Atlantic Standard/ |
h: -3; m: 0 | h: -4; m: 0 | h: -3; m: 0 | 17:55 | 16:55 | 17:55 | ||
| NT or NST | NDT | Newfoundland Standard/ |
h: -2; m: -30 | h: -3; m: -30 | h: -2; m: -30 | 18:25 | 17:25 | 18:25 | ||
| GMT | BST | Greenwich Mean Time / British Summer Time | h: 1; m: 0 | h: 0; m: 0 | h: 1; m: 0 | 21:55 | 20:55 | 21:55 | 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 | 21:55 | 20:55 | 21:55 | 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 | 22:55 | 21:55 | 22:55 | ||
| EET | EEST | Eastern European (Summer) Time | h: 3; m: 0 | h: 2; m: 0 | h: 3; m: 0 | 23:55 | 22:55 | 23:55 | ||
| IST | Indian Standard Time | h: 5; m: 30 | h: 5; m: 30 | 02:25 | 02:25 | |||||
| AWT or AWST | Australian Western Standard Time | h: 8; m: 0 | h: 8; m: 0 | 04:55 | 04:55 | 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 | 06:25 | 06:25 | 07:25 | ||
| AET or AEST | AEDT | Australian Eastern Standard/ |
h: 10; m: 0 | h: 10; m: 0 | h: 11; m: 0 | 06:55 | 06:55 | 07:55 | ||
| KST | Korea Standard Time | h: 9; m: 0 | h: 9; m: 0 | 05:55 | 05:55 | 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 | 05:55 | 05:55 | |||||
| NZT or NZST | NZDT | New Zealand Standard/ |
h: 12; m: 0 | h: 12; m: 0 | h: 13; m: 0 | 08:55 | 08:55 | 09:55 | 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 | 10:45 | 10:45 | 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 | 04:03 | 04:03 | ||||||
| Empty input | h: 0; m: 0 | h: 0; m: 0 | 20:55 | 20:55 | Follows UTC | |||||
| Unrecognised string (e.g. FOO) | h: 0; m: 0 | h: 0; m: 0 | 20:55 | 20:55 | ||||||
Time zone map

Examples
(You may want to this page to update the output.)
*{{Current hour offset in time zone|CET}}
produces
- 2
*{{Current hour offset in time zone|CET|dst=no}}
produces
- 1
*{{Current hour offset in time zone|CEST}}
produces
- 2
*{{Current hour offset in time zone|CEST|dst=no}}
produces
- 2
*{{Current hour offset in time zone|PT}}
produces
- -7
*{{Current hour offset in time zone|-4}}
produces
- -4
*{{Current hour offset in time zone}}
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 |
|
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.