Template:Time/NST offset

From MattWiki
Jump to navigation Jump to search

-2 hours -30 minutes

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}} 18:26, July 20, 2018 UTC (purge)
{{time/old|HST}} 08:26, July 20, 2018 HST (purge)
{{time/old|AleutST}} 09:26, July 20, 2018 AleutT (purge)
{{time/old|AKST}} 10:26, July 20, 2018 AKT (purge)
{{time/old|PST}} 11:26, July 20, 2018 PT (purge)
{{time/old|MST}} 12:26, July 20, 2018 MT (purge)
{{time/old|CST}} 13:26, July 20, 2018 CT (purge)
{{time/old|EST}} 14:26, July 20, 2018 ET (purge)
{{time/old|AST}} 15:26, July 20, 2018 AT (purge)
{{time/old|NST}} 15:56, July 20, 2018 NT (purge)
{{time/old|PMST}} 16:26, July 20, 2018 PMT (purge)
{{time/old|WGT}} 16:26, July 20, 2018 WGT (purge)
{{time/old|UTC}} 18:26, July 20, 2018 UTC (purge)
{{time/old|GMT}} 19:26, July 20, 2018 GMT / BST (purge)
{{time/old|CET}} 20:26, July 20, 2018 CET / CEST (purge)
{{time/old|EET}} 21:26, July 20, 2018 EET (purge)
{{time/old|IST}} 23:56, July 20, 2018 IST (purge)
{{time/old|WIT}} 01:26, July 21, 2018 WIT (purge)
{{time/old|BT}} 02:26, July 21, 2018 BT (purge)
{{time/old|EIT}} 03:26, July 21, 2018 EIT (purge)
{{time/old|JST}} 03:26, July 21, 2018 JST (purge)
{{time/old|NTT}} 03:56, July 21, 2018 NTT (purge)
{{time/old|ChST}} 04:26, July 21, 2018 ChST (purge)
{{time/old|NZST}} 06:26, July 21, 2018 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