Template:Time/PMST offset

From MattWiki
Jump to navigation Jump to search

-3 hours

Documentation icon Template documentation[view] [edit] [history] [purge]

{{Time/old}} displays the current time in a certain timezone. The time is calculated based on the offset from UTC for the specified timezone taking into account whether daylight saving time is currently active in that timezone. The offset for each implemented timezone is calculated in a sub template (except for UTC).
Note: Most Wikipedia pages display a cached version of the page to reduce server load, so the template will only display the current time as of when the page was last parsed.

Usage

Code Result
{{time/old}} 08:34, February 23, 2019 UTC (purge)
{{time/old|HST}} 22:34, February 22, 2019 HST (purge)
{{time/old|AleutST}} 22:34, February 22, 2019 AleutT (purge)
{{time/old|AKST}} 23:34, February 22, 2019 AKT (purge)
{{time/old|PST}} 00:34, February 23, 2019 PT (purge)
{{time/old|MST}} 01:34, February 23, 2019 MT (purge)
{{time/old|CST}} 02:34, February 23, 2019 CT (purge)
{{time/old|EST}} 03:34, February 23, 2019 ET (purge)
{{time/old|AST}} 04:34, February 23, 2019 AT (purge)
{{time/old|NST}} 05:04, February 23, 2019 NT (purge)
{{time/old|PMST}} 05:34, February 23, 2019 PMT (purge)
{{time/old|WGT}} 05:34, February 23, 2019 WGT (purge)
{{time/old|UTC}} 08:34, February 23, 2019 UTC (purge)
{{time/old|GMT}} 08:34, February 23, 2019 GMT / BST (purge)
{{time/old|CET}} 09:34, February 23, 2019 CET / CEST (purge)
{{time/old|EET}} 10:34, February 23, 2019 EET (purge)
{{time/old|IST}} 14:04, February 23, 2019 IST (purge)
{{time/old|WIT}} 15:34, February 23, 2019 WIT (purge)
{{time/old|BT}} 16:34, February 23, 2019 BT (purge)
{{time/old|EIT}} 17:34, February 23, 2019 EIT (purge)
{{time/old|JST}} 17:34, February 23, 2019 JST (purge)
{{time/old|NTT}} 18:04, February 23, 2019 NTT (purge)
{{time/old|ChST}} 18:34, February 23, 2019 ChST (purge)
{{time/old|NZST}} 21:34, February 23, 2019 NZST (purge)

Subtemplates

Offset

Links to the subtemplates used to calculate the current offset from UTC for each timezone (taking into account whether daylight saving time is active or not):

Errors

Specifying an unimplemented timezone in the first argument will trigger a {{formatting error}} and the addition of the page where the template is transcluded to Category:Pages with incorrect formatting templates use.

See also