Template:Time/PMST offset

From MattWiki
Jump to: navigation, 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}} 21:09, November 20, 2017 UTC (purge)
{{time/old|HST}} 11:09, November 20, 2017 HST (purge)
{{time/old|AleutST}} 11:09, November 20, 2017 AleutT (purge)
{{time/old|AKST}} 12:09, November 20, 2017 AKT (purge)
{{time/old|PST}} 13:09, November 20, 2017 PT (purge)
{{time/old|MST}} 14:09, November 20, 2017 MT (purge)
{{time/old|CST}} 15:09, November 20, 2017 CT (purge)
{{time/old|EST}} 16:09, November 20, 2017 ET (purge)
{{time/old|AST}} 17:09, November 20, 2017 AT (purge)
{{time/old|NST}} 17:39, November 20, 2017 NT (purge)
{{time/old|PMST}} 18:09, November 20, 2017 PMT (purge)
{{time/old|WGT}} 18:09, November 20, 2017 WGT (purge)
{{time/old|UTC}} 21:09, November 20, 2017 UTC (purge)
{{time/old|GMT}} 21:09, November 20, 2017 GMT / BST (purge)
{{time/old|CET}} 22:09, November 20, 2017 CET / CEST (purge)
{{time/old|EET}} 23:09, November 20, 2017 EET (purge)
{{time/old|IST}} 02:39, November 21, 2017 IST (purge)
{{time/old|WIT}} 04:09, November 21, 2017 WIT (purge)
{{time/old|BT}} 05:09, November 21, 2017 BT (purge)
{{time/old|EIT}} 06:09, November 21, 2017 EIT (purge)
{{time/old|JST}} 06:09, November 21, 2017 JST (purge)
{{time/old|NTT}} 06:39, November 21, 2017 NTT (purge)
{{time/old|ChST}} 07:09, November 21, 2017 ChST (purge)
{{time/old|NZST}} 10:09, November 21, 2017 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