Template:Time/doc

From Encyclopedia Thelemica
Jump to navigationJump to search

{{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).

Usage

{{Time}}  →  21:53, May 16, 2021 (UTC)
{{Time|UTC}}  →  21:53, May 16, 2021 (UTC)
{{Time|GMT}}  →  22:53, May 16, 2021 (GMT)
{{Time|CET}}  →  23:53, May 16, 2021 (CET)
{{Time|EET}}  →  00:53, May 17, 2021 (EET)
{{Time|PST}}  →  14:53, May 16, 2021 (PST)
{{Time|MST}}  →  15:53, May 16, 2021 (MST)
{{Time|IST}}  →  03:23, May 17, 2021 (IST)
{{Time|CST}}  →  16:53, May 16, 2021 (CST)
{{Time|EST}}  →  17:53, May 16, 2021 (EST)
{{Time|AST}}  →  18:53, May 16, 2021 (AST)
{{Time|AKST}}  →  13:53, May 16, 2021 (AKST)
{{Time|HST}}  →  11:53, May 16, 2021 (HAST)
{{Time|ChST}}  →  07:53, May 17, 2021 (ChST)
{{Time|BT}}  →  05:53, May 17, 2021 (BT)
{{Time|WIT}}  →  04:53, May 17, 2021 (WIT)
{{Time|EIT}}  →  06:53, May 17, 2021 (EIT)

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