Template:Time

From Kumu Wiki - TRU
Jump to navigation Jump to search
[edit] Template-info.svg Template documentation

{{Time}} 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

{{Time}}  →  16:54, December 3, 2024 (UTC) (Purge)
{{Time|HST}}  →  06:54, December 3, 2024 (HST) (Purge)
{{Time|AleutST}}  →  06:54, December 3, 2024 (AleutT) (Purge)
{{Time|AKST}}  →  07:54, December 3, 2024 (AKT) (Purge)
{{Time|PST}}  →  08:54, December 3, 2024 (PT) (Purge)
{{Time|MST}}  →  09:54, December 3, 2024 (MT) (Purge)
{{Time|CST}}  →  10:54, December 3, 2024 (CT) (Purge)
{{Time|EST}}  →  11:54, December 3, 2024 (ET) (Purge)
{{Time|AST}}  →  12:54, December 3, 2024 (AT) (Purge)
{{Time|NST}}  →  13:24, December 3, 2024 (NT) (Purge)
{{Time|PMST}}  →  13:54, December 3, 2024 (PMT) (Purge)
{{Time|WGT}}  →  13:54, December 3, 2024 (WGT) (Purge)
{{Time|UTC}}  →  16:54, December 3, 2024 (UTC) (Purge)
{{Time|GMT}}  →  16:54, December 3, 2024 (GMT / BST) (Purge)
{{Time|CET}}  →  17:54, December 3, 2024 (CET / CEST) (Purge)
{{Time|EET}}  →  18:54, December 3, 2024 (EET) (Purge)
{{Time|IST}}  →  22:24, December 3, 2024 (IST) (Purge)
{{Time|WIT}}  →  23:54, December 3, 2024 (WIT) (Purge)
{{Time|BT}}  →  00:54, December 4, 2024 (BT) (Purge)
{{Time|EIT}}  →  01:54, December 4, 2024 (EIT) (Purge)
{{Time|JST}}  →  01:54, December 4, 2024 (JST) (Purge)
{{Time|NTT}}  →  02:24, December 4, 2024 (NTT) (Purge)
{{Time|ChST}}  →  02:54, December 4, 2024 (ChST) (Purge)
{{Time|NZST}}  →  05:54, December 4, 2024 (NZST) (Purge)

Sub templates

These templates are 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 result in an error, which is displayed using {{FormattingError}}. Pages that contain incorrect use of this template will show up on Category:Pages with incorrect formatting templates use.

See also

ko:틀:시간 simple:Template:Time mk:Шаблон:Моменталновреме ja:Template:時間 ru:Шаблон:Time