Template:Time/old/doc

From MOASSpedia
< Template:Time‎ | old
Revision as of 06:35, 7 July 2019 by Wikipedia>Trappist the monk (Reverted edits by 2600:8801:1E00:1721:F9A6:37BD:44B1:4194 (talk) to last version by StevenJ81)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{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}} 00:45, June 29, 2024 UTC (purge)
{{time/old|HST}} 14:45, June 28, 2024 HST (purge)
{{time/old|AleutST}} 15:45, June 28, 2024 AleutT (purge)
{{time/old|AKST}} 16:45, June 28, 2024 AKT (purge)
{{time/old|PST}} 17:45, June 28, 2024 PT (purge)
{{time/old|MST}} 18:45, June 28, 2024 MT (purge)
{{time/old|CST}} 19:45, June 28, 2024 CT (purge)
{{time/old|EST}} 20:45, June 28, 2024 ET (purge)
{{time/old|AST}} 21:45, June 28, 2024 AT (purge)
{{time/old|NST}} 22:15, June 28, 2024 NT (purge)
{{time/old|PMST}} 22:45, June 28, 2024 PMT (purge)
{{time/old|WGT}} 22:45, June 28, 2024 WGT (purge)
{{time/old|UTC}} 00:45, June 29, 2024 UTC (purge)
{{time/old|GMT}} 01:45, June 29, 2024 GMT / BST (purge)
{{time/old|CET}} 02:45, June 29, 2024 CET / CEST (purge)
{{time/old|EET}} 03:45, June 29, 2024 EET (purge)
{{time/old|IST}} 06:15, June 29, 2024 IST (purge)
{{time/old|WIT}} 07:45, June 29, 2024 WIT (purge)
{{time/old|BT}} 08:45, June 29, 2024 BT (purge)
{{time/old|EIT}} 09:45, June 29, 2024 EIT (purge)
{{time/old|JST}} 09:45, June 29, 2024 JST (purge)
{{time/old|NTT}} 10:15, June 29, 2024 NTT (purge)
{{time/old|ChST}} 10:45, June 29, 2024 ChST (purge)
{{time/old|NZST}} 12:45, June 29, 2024 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