defzone.net@gmail.comLiên hệ
DZ
DefZone.Net

Kien thuc cong nghe & giai tri

Bai vietDia diemAlbum anhGameCua hang
  1. Home
  2. Wiki
Template documentation[view] [edit] [history] [purge]

This template returns a UTC offset string suitable for use with the {{#time:}} parser function:

{{UTC offset|MST}} → -7 hours

Usage

[edit]

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 to no, 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}} → 00:41 – UTC time
{{UTC offset|MST}} → -7 hours – MST or MDT offset from UTC
{{#time:H:i | {{UTC offset|MST}} }} → 17:41 – 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

[edit]

This is a list of the currently supported time zone abbreviations:

  • ACST (ACDT)
  • AEST (AEDT)
  • AKT (AKST) (AKDT)
  • AoETooltip Anywhere on Earth[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
  • 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
  1. ^ a b c Nonstandard time zone included for convenience.
  2. ^ 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.
  3. ^ To differentiate between Bangladesh Standard Time (BST) and year-round GMT, the template uses GMT-UK for the United Kingdom.
  4. ^ To differentiate between Paraguay Time (PYT), the template uses KPT for Pyongyang Time.

Error messages

[edit]

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.
The above documentation is transcluded from Template:UTC offset/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
DZ
DefZone.Net

Noi chia se kien thuc, huong dan va kham pha cong nghe.

Lien ket nhanh

Trang chủBài viếtWikiCửa hàngLiên hệ

Liên hệ

Email: defzone.net@gmail.com
Điện thoại: +84 762 559 696
Địa chỉ: Thiên Hương, Thủy Nguyên, Hải Phòng

Đăng ký nhận tin

Nhận bài viết và cập nhật mới nhất qua email.

© 2025 DefZone.Net. All rights reserved.
PrivacyTermsSitemap