Template:Time zone/doc

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

{{Time zone}} can be used to quickly and consistently link to an article on a timezone, while automatically displaying the deviation from UTC.

It also contains sub-templates that contain the data for columns in the tz database.

{{subst:Time zone|timezone}}

Replace timezone with any standard time zone code. If the time zone is omitted or unrecognised, the template defaults to displaying the provided argument.

Exceptions: Sometimes, two different time zones have the same abbreviation. As we cannot change them, a little trick must be used for lesser-used ones. Instead of using the template above, you must use the following template:

{{subst:Time zone|timezone continent}}

Replace timezone with any standard time zone code. Replace continent with any of the following:

  • Africa: AF
  • Antarctica: AN
  • Asia: AS
  • Australia: AU
  • Europe: EU
  • North America: NA
  • South America: SA

Examples:

  • Irish Summer Time: {{subst:Time zone|IST EU}} gives IST (UTC+01:00)
  • Indian Standard Time: {{subst:Time zone|IST}} gives IST (UTC+05:30)

Ireland being less inhabited than India, Indian Standard Time will be used more often than Irish Summer Time, and is therefore the default if no continent is specified.

See more examples below.

Examples

[edit source]

The list may not be exhaustive.

Offset Abbreviation Name Code Live result Substituted result
UTC−12:00 BIT Baker Island Time {{subst:Time zone|BIT}} BIT (UTC−12:00) BIT (UTC−12:00)
IDLW Internation Date Line West {{subst:Time zone|IDLW}} IDLW (UTC−12:00) IDLW (UTC−12:00)
UTC−11:00 SST SA Samoa Standard Time {{subst:Time zone|SST SA}} SST (UTC−11:00) SST (UTC−11:00)
BET Bering Standard Time {{subst:Time zone|BET}} BET (UTC−11:00) BET (UTC−11:00)
UTC−10:00 CKT Cook Islands Time {{subst:Time zone|CKT}} CKT (UTC−10:00) CKT (UTC−10:00)
HAST Hawaii–Aleutian Standard Time {{subst:Time zone|HAST}} HAST (UTC−10:00) HAST (UTC−10:00)
TAHT Tahiti Time {{subst:Time zone|TAHT}} TAHT (UTC−10:00) TAHT (UTC−10:00)
UTC−09:30 MIT Marquesas Islands Time {{subst:Time zone|MIT}} MIT (UTC−09:30) MIT (UTC−09:30)
UTC−09:00 AKST Alaska Standard Time {{subst:Time zone|AKST}} AKST (UTC−09:00) AKST (UTC−09:00)
GIT Gambier Island Time {{subst:Time zone|GIT}} GIT (UTC−09:00) GIT (UTC−09:00)
HADT Hawaii–Aleutian Daylight Time {{subst:Time zone|HADT}} HADT (UTC−09:00) HADT (UTC−09:00)
UTC−08:00 AKDT Alaska Standard Daylight Time {{subst:Time zone|AKDT}} AKDT (UTC−08:00) AKDT (UTC−08:00)
CIST Clipperton Island Standard Time {{subst:Time zone|CIST}} CIST (UTC−08:00) CIST (UTC−08:00)
PST Pacific Standard Time {{subst:Time zone|PST}} PST (UTC−08:00) PST (UTC−08:00)
UTC−07:00 MST Mountain Standard Time {{subst:Time zone|MST}} MST (UTC−07:00) MST (UTC−07:00)
PDT Pacific Daylight Time {{subst:Time zone|PDT}} PDT (UTC−07:00) PDT (UTC−07:00)
UTC−06:00 CST Central Standard Time {{subst:Time zone|CST}} CST (UTC−06:00) CST (UTC−06:00)
GALT Galapagos Time {{subst:Time zone|GALT}} GALT (UTC−06:00) GALT (UTC−06:00)
MDT Mountain Daylight Time {{subst:Time zone|MDT}} MDT (UTC−06:00) MDT (UTC−06:00)
UTC−05:00 CDT Central Daylight Time {{subst:Time zone|CDT}} CDT (UTC−05:00) CDT (UTC−05:00)
EST Eastern Standard Time {{subst:Time zone|EST}} EST (UTC−05:00) EST (UTC−05:00)
ECT Ecuador Time {{subst:Time zone|ECT}} ECT (UTC−05:00) ECT (UTC−05:00)
UTC−04:00 AST Atlantic Standard Time {{subst:Time zone|AST}} AST (UTC−04:00) AST (UTC−04:00)
ECT NA Eastern Caribbean Time {{subst:Time zone|ECT NA}} ECT (UTC−04:00) ECT (UTC−04:00)
EDT Eastern Daylight Time {{subst:Time zone|EDT}} EDT (UTC−04:00) EDT (UTC−04:00)
UTC−03:30 NST NA Newfoundland Standard Time {{subst:Time zone|NST NA}} NST (UTC−03:30) NST (UTC−03:30)
UTC−03:00 ADT Atlantic Daylight Time {{subst:Time zone|ADT}} ADT (UTC−03:00) ADT (UTC−03:00)
UTC−02:30 NDT Newfoundland Daylight Time {{subst:Time zone|NDT}} NDT (UTC−02:30) NDT (UTC−02:30)
UTC−02:00 VTZ Greenland Eastern Standard Time {{subst:Time zone|VTZ}} VTZ (UTC−02:00) VTZ (UTC−02:00)
FDT Fernando de Noronha Standard Time {{subst:Time zone|FDT}} FDT (UTC−02:00) FDT (UTC−02:00)
UTC−01:00 AT Azores Time {{subst:Time zone|AT}} AT (UTC−01:00) AT (UTC−01:00)
CVT Cape Verde Time {{subst:Time zone|CVT}} CVT (UTC−01:00) CVT (UTC−01:00)
UTC+00:00 GMT Greenwich Mean Time {{subst:Time zone|GMT}} GMT (UTC±00:00) GMT (UTC±00:00)
WET Western European Time {{subst:Time zone|WET}} WET (UTC±00:00) WET (UTC±00:00)
UTC+01:00 BST British Summer Time {{subst:Time zone|BST}} BST (UTC+01:00) BST (UTC+01:00)
CET Central European Time {{subst:Time zone|CET}} CET (UTC+01:00) CET (UTC+01:00)
GDT British Summer Time {{subst:Time zone|GDT}} GDT (UTC+01:00) GDT (UTC+01:00)
IST EU Irish Summer Time {{subst:Time zone|IST EU}} IST (UTC+01:00) IST (UTC+01:00)
MET Middle European Time {{subst:Time zone|MET}} MET (UTC+01:00) MET (UTC+01:00)
WAT West Africa Time {{subst:Time zone|WAT}} WAT (UTC+01:00) WAT (UTC+01:00)
WEST Western European Summer Time {{subst:Time zone|WEST}} WEST (UTC+01:00) WEST (UTC+01:00)
WEDT Western European Daylight Time {{subst:Time zone|WEDT}} WEDT (UTC+01:00) WEDT (UTC+01:00)
UTC+02:00 CEST Central European Summer Time {{subst:Time zone|CEST}} CEST (UTC+02:00) CEST (UTC+02:00)
CEDT Central European Daylight Time {{subst:Time zone|CEDT}} CEDT (UTC+02:00) CEDT (UTC+02:00)
EET Eastern European Time {{subst:Time zone|EET}} EET (UTC+02:00) EET (UTC+02:00)
IST AS Israel Standard Time {{subst:Time zone|IST AS}} IST (UTC+02:00) IST (UTC+02:00)
SAST South African Standard Time {{subst:Time zone|SAST}} SAST (UTC+02:00) SAST (UTC+02:00)
UTC+03:00 AST AS Arabia Standard Time {{subst:Time zone|AST AS}} AST (UTC+03:00) AST (UTC+03:00)
EAT East Africa Time {{subst:Time zone|EAT}} EAT (UTC+03:00) EAT (UTC+03:00)
EEST Eastern European Summer Time {{subst:Time zone|EEST}} EEST (UTC+03:00) EEST (UTC+03:00)
EEDT Eastern European Daylight Time {{subst:Time zone|EEDT}} EEDT (UTC+03:00) EEDT (UTC+03:00)
IDT Israel Daylight Time {{subst:Time zone|IDT}} IDT (UTC+03:00) IDT (UTC+03:00)
MSK Moscow Time {{subst:Time zone|MSK}} MSK (UTC+03:00) MSK (UTC+03:00)
TRT Time in Turkey {{subst:Time zone|TRT}} TRT (UTC+03:00) TRT (UTC+03:00)
UTC+04:00 AZT Azerbaijan Time {{subst:Time zone|AZT}} AZT (UTC+04:00) AZT (UTC+04:00)
GST Gulf Standard Time {{subst:Time zone|GST}} GST (UTC+04:00) GST (UTC+04:00)
MSD Moscow Summer Time {{subst:Time zone|MSD}} MSD (UTC+04:00) MSD (UTC+04:00)
SAMT Samara Time {{subst:Time zone|SAMT}} SAMT (UTC+04:00) SAMT (UTC+04:00)
UTC+05:00 AZST Azerbaijan Summer Time {{subst:Time zone|AZST}} AZST (UTC+05:00) AZST (UTC+05:00)
PKT Pakistan Standard Time {{subst:Time zone|PKT}} PKT (UTC+05:00) PKT (UTC+05:00)
SAMST Samara Summer Time {{subst:Time zone|SAMST}} SAMST (UTC+05:00) SAMST (UTC+05:00)
YEKT Yekaterinburg Time {{subst:Time zone|YEKT}} YEKT (UTC+05:00) YEKT (UTC+05:00)
UTC+05:30 IST Indian Standard Time {{subst:Time zone|IST}} IST (UTC+05:30) IST (UTC+05:30)
UTC+05:45 NPT Nepal Time {{subst:Time zone|NPT}} NPT (UTC+05:45) NPT (UTC+05:45)
UTC+06:00 BST AS Bangladesh Standard Time {{subst:Time zone|BST AS}} BST (UTC+06:00) BST (UTC+06:00)
BTT Bhutan Time {{subst:Time zone|BTT}} BTT (UTC+06:00) BTT (UTC+06:00)
KGT Kyrgyzstan Time {{subst:Time zone|KGT}} KGT (UTC+06:00) KGT (UTC+06:00)
LKT Lanka Time {{subst:Time zone|LKT}} LKT (UTC+06:00) LKT (UTC+06:00)
MAWT Mawson Time {{subst:Time zone|MAWT}} MAWT (UTC+06:00) MAWT (UTC+06:00)
OMST Omsk Time {{subst:Time zone|OMST}} OMST (UTC+06:00) OMST (UTC+06:00)
YEKST Yekaterinburg Summer Time {{subst:Time zone|YEKST}} YEKST (UTC+06:00) YEKST (UTC+06:00)
UTC+06:30 MMT Myanmar Standard Time {{subst:Time zone|MMT}} MMT UTC+06:30 MMT UTC+06:30
NST North Sumatra Time {{subst:Time zone|NST}} NST (UTC+06:30) NST (UTC+06:30)
UTC+07:00 CXT Christmas Island Time {{subst:Time zone|CXT}} CXT (UTC+07:00) CXT (UTC+07:00)
ICT Indochina Time {{subst:Time zone|ICT}} ICT (UTC+07:00) ICT (UTC+07:00)
KRAT Krasnoyarsk Time {{subst:Time zone|KRAT}} KRAT (UTC+07:00) KRAT (UTC+07:00)
OMSST Omsk Summer Time {{subst:Time zone|OMSST}} OMSST (UTC+07:00) OMSST (UTC+07:00)
SST South Sumatran Time {{subst:Time zone|SST}} SST (UTC+07:00) SST (UTC+07:00)
THA Thailand Standard Time {{subst:Time zone|THA}} THA (UTC+07:00) THA (UTC+07:00)
UTC+08:00 AWST Australian Western Standard Time {{subst:Time zone|AWST}} AWST (UTC+08:00) AWST (UTC+08:00)
BORT Borneo Time {{subst:Time zone|BORT}} BORT (UTC+08:00) BORT (UTC+08:00)
BNT Brunei Darussalam Time {{subst:Time zone|BNT}} BNT (UTC+08:00) BNT (UTC+08:00)
CST AS China Standard Time {{subst:Time zone|CST AS}} CST (UTC+08:00) CST (UTC+08:00)
HKT Hong Kong Time {{subst:Time zone|HKT}} HKT (UTC+08:00) HKT (UTC+08:00)
IRKT Irkutsk Time {{subst:Time zone|IRKT}} IRKT (UTC+08:00) IRKT (UTC+08:00)
KRAST Krasnoyarsk Summer Time {{subst:Time zone|KRAST}} KRAST (UTC+08:00) KRAST (UTC+08:00)
MST AS Malaysian Standard Time {{subst:Time zone|MST AS}} MST (UTC+08:00) MST (UTC+08:00)
PHT Philippine Standard Time {{subst:Time zone|PHT}} PHT (UTC+08:00) PHT (UTC+08:00)
SST AS Singapore Standard Time {{subst:Time zone|SST AS}} SST (UTC+08:00) SST (UTC+08:00)
ULAT Ulan Bator Time {{subst:Time zone|ULAT}} ULAT (UTC+08:00) ULAT (UTC+08:00)
WST Western Standard Time {{subst:Time zone|WST}} WST (UTC+08:00) WST (UTC+08:00)
UTC+09:00 IRKST Irkutsk Summer Time {{subst:Time zone|IRKST}} IRKT (UTC+09:00) IRKT (UTC+09:00)
JST Japan Standard Time {{subst:Time zone|JST}} JST (UTC+09:00) JST (UTC+09:00)
JAYT Jayapura Time {{subst:Time zone|JAYT}} JAYT (UTC+09:00) JAYT (UTC+09:00)
KST Korean Standard Time {{subst:Time zone|KST}} KST (UTC+09:00) KST (UTC+09:00)
PWT Palau Time {{subst:Time zone|PWT}} PWT (UTC+09:00) PWT (UTC+09:00)
YAKT Yakutsk Time {{subst:Time zone|YAKT}} YAKT (UTC+09:00) YAKT (UTC+09:00)
UTC+09:30 ACST Australian Central Standard Time {{subst:Time zone|ACST}} ACST (UTC+09:30) ACST (UTC+09:30)
UTC+10:00 AEST Australian Eastern Standard Time {{subst:Time zone|AEST}} AEST (UTC+10:00) AEST (UTC+10:00)
DDUT Dumont-d`Urville Time {{subst:Time zone|DDUT}} DDUT (UTC+10:00) DDUT (UTC+10:00)
GST AS Guam Standard Time {{subst:Time zone|GST AS}} GST (UTC+10:00) GST (UTC+10:00)
MPT North Mariana (Islands) Time {{subst:Time zone|MPT}} MPT (UTC+10:00) MPT (UTC+10:00)
PGT Papua New Guinea Time {{subst:Time zone|PGT}} PGT (UTC+10:00) PGT (UTC+10:00)
TRUT Truk Time {{subst:Time zone|TRUT}} TRUT (UTC+10:00) TRUT (UTC+10:00)
VLAT Vladivostok Time {{subst:Time zone|VLAT}} VLAT (UTC+10:00) VLAT (UTC+10:00)
YAKST Yakutsk Summer Time {{subst:Time zone|YAKST}} YAKST (UTC+10:00) YAKST (UTC+10:00)
YAPT Yap Time {{subst:Time zone|YAPT}} YAPT (UTC+10:00) YAPT (UTC+10:00)
UTC+10:30 ACDT Australian Central Daylight Time {{subst:Time zone|ACDT}} ACDT (UTC+10:30) ACDT (UTC+10:30)
LHST Lord Howe Standard Time {{subst:Time zone|LHST}} LHST (UTC+10:30) LHST (UTC+10:30)
UTC+11:00 AEDT Australian Eastern Daylight Time {{subst:Time zone|AEDT}} AEDT (UTC+11:00) AEDT (UTC+11:00)
MAGT Magadan Time {{subst:Time zone|MAGT}} MAGT (UTC+11:00) MAGT (UTC+11:00)
NCT New Caledonia Time {{subst:Time zone|NCT}} NCT (UTC+11:00) NCT (UTC+11:00)
PONT Ponape Time {{subst:Time zone|PONT}} PONT (UTC+11:00) PONT (UTC+11:00)
SBT Solomon (Islands) Time {{subst:Time zone|SBT}} SBT (UTC+11:00) SBT (UTC+11:00)
VUT Vanuata Time {{subst:Time zone|VUT}} VUT (UTC+11:00) VUT (UTC+11:00)
VLAST Vladivostok Summer Time {{subst:Time zone|VLAST}} VLAST (UTC+11:00) VLAST (UTC+11:00)
UTC+11:30 NFT Norfolk (Island) Time {{subst:Time zone|NFT}} NFT (UTC+11:30) NFT (UTC+11:30)
UTC+12:00 FJT Fiji Time {{subst:Time zone|FJT}} FJT (UTC+12:00) FJT (UTC+12:00)
GILT Gilbert (Islands) Time {{subst:Time zone|GILT}} GILT (UTC+12:00) GILT (UTC+12:00)
IDLE Internation Date Line East {{subst:Time zone|IDLE}} IDLE (UTC+12:00) IDLE (UTC+12:00)
KOST Kosrae Time {{subst:Time zone|KOST}} KOST (UTC+12:00) KOST (UTC+12:00)
MAGST Magadan Summer Time {{subst:Time zone|MAGST}} MAGST (UTC+12:00) MAGST (UTC+12:00)
MHT Marshall (Islands) Time {{subst:Time zone|MHT}} MHT (UTC+12:00) MHT (UTC+12:00)
NRT Nauru Time {{subst:Time zone|NRT}} NRT (UTC+12:00) NRT (UTC+12:00)
NZST New Zealand Standard Time {{subst:Time zone|NZST}} NZST (UTC+12:00) NZST (UTC+12:00)
PETT Petropavlovsk-Kamtchatski Time {{subst:Time zone|PETT}} PETT (UTC+12:00) PETT (UTC+12:00)
TVT Tuvalu Time {{subst:Time zone|TVT}} TVT (UTC+12:00) TVT (UTC+12:00)
WFT Wallis and Futuna Time {{subst:Time zone|WFT}} WFT (UTC+12:00) WFT (UTC+12:00)
WAKT Wake Time {{subst:Time zone|WAKT}} WAKT (UTC+12:00) WAKT (UTC+12:00)
UTC+12:45 CHAST Chatham Standard Time {{subst:Time zone|CHAST}} CHAST (UTC+12:45) CHAST (UTC+12:45)
UTC+13:00 PETST Petropavlovsk-Kamtchatski Summer Time {{subst:Time zone|PETST}} PETST (UTC+13:00) PETST (UTC+13:00)
PHOT Phoenix (Islands) Time {{subst:Time zone|PHOT}} PHOT (UTC+13:00) PHOT (UTC+13:00)
TOT Tonga Time {{subst:Time zone|TOT}} TOT (UTC+13:00) TOT (UTC+13:00)
UTC+14:00 LINT Line (Islands) Time {{subst:Time zone|LINT}} LINT (UTC+14:00) LINT (UTC+14:00)

See also

[edit source]

tz database

[edit source]

Sub templates store data from the tz database and some related information. These examples are accurate as of version 2025c of the database.

Code example Produces Description
{{Time zone/version|IncludeLink}} [https://data.iana.org/time-zones/releases/tzdata2025c.tar.gz 2025c] Produces the version number of the tz database. Update this template when updating those below with data from a new release. Add a parameter (value doesn't matter) to include a link to the IANA FTP site.
{{Time zone/country code|Asia/Urumqi}} CN Maps TZ to country code from zone.tab
{{Time zone/iso 3166-1 link|Asia/Urumqi}} [[ISO 3166-1:CN|CN]] Maps TZ to linked country code from zone.tab
{{Time zone/coordinates|Asia/Urumqi}} +4348+08735 Maps TZ to coordinates in original format from zone.tab
{{Time zone/comments|Asia/Urumqi}} Xinjiang Time Maps TZ to comments from zone.tab
{{Time zone/rulefile|Asia/Urumqi}} asia Maps TZ to linked continent file that defines the zone (or link) and DST rules.
{{Time zone/utc offset|Europe/Amsterdam}} +01:00 Maps TZ to normal (non-DST) UTC offset
{{Time zone/utc offset link|Europe/Amsterdam}} [[UTC+01:00|+01:00]] Maps TZ to linked normal (non-DST) UTC offset
{{Time zone/utc zone|Europe/Amsterdam}} UTC+01:00 Maps TZ to normal (non-DST) UTC offset with prefix
{{Time zone/utc dst offset|Europe/Amsterdam}} +02:00 Maps TZ to DST UTC offset
{{Time zone/utc dst offset link|Europe/Amsterdam}} [[UTC+02:00|+02:00]] Maps TZ to linked DST UTC offset
{{Time zone/zone.tab cols wikitable|Antarctica/South_Pole}}
| [[ISO 3166-1:AQ|AQ]] ||  || [[Antarctica/South_Pole]] ||
Maps TZ to 4 elements as a wikitable row – country code, coordinates, zone name, and comments
{{Time zone/zone.tab cols linked|Antarctica/South_Pole}}
| [[ISO 3166-1:AQ|AQ]]
|  
| Antarctica/South_Pole 
|  
| [[UTC+12:00|+12:00]]
| [[UTC+13:00|+13:00]]
Similar to {{Time zone/zone.tab cols wikitable}}, but adds two more lines to the output, containing the linked normal (non-DST) and DST UTC offsets
{{Time zone/zone.tab cols unlinked|Antarctica/South_Pole}}
| AQ
|  
| Antarctica/South_Pole
|  
| +12:00
| +13:00
Same as {{Time zone/zone.tab cols unlinked}}, but with no links
{{Time zone/zone.tab cols wiki6|Antarctica/South_Pole}}
| [[ISO 3166-1:AQ|AQ]]
| 
| <div style="text-indent: -1.6em; margin-left: 1.6em;">Antarctica<wbr />/South_Pole</div>
| 
| data-sort-value="43200" | [[UTC+12:00|+12:00]]
| data-sort-value="46800" | [[UTC+13:00|+13:00]]
A possibly slower version of {{Time zone/zone.tab cols linked}}.

Note: neither {{Time zone/zone.tab cols wiki6}} nor {{Time zone/zone.tab cols linked}} can currently be used for the full table in List of tz database time zones because of performance limitations in processing such a long table. They can, however, be used for a small number of rows in individual area articles.

References

[edit source]