Template:UTC offset
This template returns a UTC offset string suitable for use with the {{#time:}} parser function:
{{UTC offset|MST}}→ -6 hours
Usage
This template takes two parameters:
<timezone code>– (required) the first positional parameter specifies the timezone for which the offset is desired|dst=– (optional) when set tono, suppresses daylight saving time adjustment
Valid <timezone code> values are the same as those supported by {{time}}.
Typical use of this template is with the {{#time:}} parser function:
{{#time:H:i}}→ 06:36 – UTC time{{UTC offset|MST}}→ -6 hours – MST or MDT offset from UTC{{#time:H:i | {{UTC offset|MST}} }}→ 00:36 – MST or MDT time
Use |dst=no to get the UTC offset for areas that do not support daylight saving time but are located within timezones that do: Arizona (does not) is located within the Mountain Time Zone (does).
Supported time zones
This is a list of the currently supported time zone abbreviations:
- ACST (ACDT)
- AEST (AEDT)
- AKT (AKST) (AKDT)
- AoE[A]
- AT (AST) (ADT)
- AWST
- BST
- BT
- CET (CEST)
- ChST
- CT (CST) (CDT)
- EET (EEST)
- ET (EST) (EDT)
- GFT
- GMT
- GMT-IE[B]
- GMT-UK[C]
- HST (HDT)
- IDLE[A]
- IDLW[A]
- ILST[B]
- IRKT
- IRST
- IST[B]
- JST
- KALT (USZ1)
- KPT[D]
- KRAT
- KST
- KZT
- MAGT
- MMT
- MSK
- MST (MDT)
- MVT
- MYT[E]
- NPT
- NST (NDT)
- NZST (NZDT)
- OMST
- PETT
- PHT
- PKT
- PMST (PMDT)
- PT (PST) (PDT)
- SAMT
- SAST
- SLST
- SRET
- SST
- UTC
- VLAT
- WET (WEST)
- WGT (WGST)
- WIB
- WIT
- WITA
- YAKT
- YEKT
- ^ a b c Nonstandard time zone included for convenience.
- ^ a b c To differentiate between multiple time zones abbreviated as IST, the template uses IST for Indian Standard Time, GMT-IE for Irish Standard Time, and ILST for Israel Standard Time/Summer Time.
- ^ To differentiate between Bangladesh Standard Time (BST) and year-round GMT, the template uses GMT-UK for the United Kingdom.
- ^ To differentiate between Paraguay Time (PYT), the template uses KPT for Pyongyang Time.
- ^ To differentiate between Mountain Standard Time (MST), the template uses MYT for Malaysian Standard Time.
Error messages
This template can emit three error messages:
- unknown timezone <unknown timezone> – this message emitted when <unknown timezone> is not a timezone known to Module:Time. To resolve this error, use a known timezone specifier.
- missing required timezone – this template requires a timezone specifier. To resolve this error, provide a known timezone specifier.
- error calculating dst timestamps – this template automatically applies daylight saving adjustment for those timezones that support it. This error message indicates that the underlying data in Module:Time/data for the timezone is malformed. To resolve this error, the underlying data must be corrected. This may be accomplished by anyone with administrator or template editor permission. Post a message at Template talk:Time.
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.