This is the template test cases page for the sandbox of Template:Time. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
Module:Time | Module:Time/sandbox
12:05, November 2, 2018 MDT [refresh]
12:05, November 2, 2018 MDT [refresh]
change to Hawaii–Aleutian abbreviation
Hawaii HST during standard time
{{Time|HST}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HST during daylight
{{Time|HST}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]}
Hawaii HDT during standard time
{{Time|HDT}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HDT during daylight
{{Time|HDT}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HAST during standard time
{{Time|HAST}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HAST during daylight
{{Time|HAST}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HADT during standard time
{{Time|HADT}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
Hawaii HADT during daylight
{{Time|HADT}}
{{Time}}
20:27, April 4, 2025 HDT [refresh]
{{Time/sandbox}}
20:27, April 4, 2025 HDT [refresh]
custom date format
df-cust
{{Time|mst|df-cust=U}}
{{Time}}
{{Time/sandbox}}
df-cust-a
{{Time|mst|df-cust-a=g:i "ᴀᴍ", j F Y}}
{{Time}}
{{time}} – both of |df-cust-a= and |df-cust-p required (help)
{{Time/sandbox}}
{{time}} – both of |df-cust-a= and |df-cust-p required (help)
df-cust-p
{{Time|mst|df-cust=g:i "p. m.", j F Y}}
{{Time}}
11:27 p. m., 4 April 2025 MDT [refresh]
{{Time/sandbox}}
11:27 p. m., 4 April 2025 MDT [refresh]
df-cust-p and df-cust-p; |_TEST_TIME_=2018-11-02T09:05:00
{{Time|df-cust=g:i "p. m.", j F Y |df-cust-a=g:i "ᴀᴍ", j F Y}}
{{Time}}
{{time}} – both of |df-cust-a= and |df-cust-p required (help)
{{Time/sandbox}}
{{time}} – both of |df-cust-a= and |df-cust-p required (help)
df-cust-p and df-cust-p; |_TEST_TIME_=2018-11-02T15:05:00
{{Time|df-cust-a=g:i "ᴀᴍ", j F Y |df-cust-p=g:i "p. m.", j F Y}}
{{Time}}
5:27 ᴀᴍ, 5 April 2025 UTC [refresh]
{{Time/sandbox}}
5:27 ᴀᴍ, 5 April 2025 UTC [refresh]
lang
Spanish
{{Time|mst|lang=es}}
{{Time}}
23:27, abril 4, 2025 MDT [refresh]
{{Time/sandbox}}
23:27, abril 4, 2025 MDT [refresh]
Russian
{{Time|mst|lang=ru}}
{{Time}}
23:27, апрель 4, 2025 MDT [refresh]
{{Time/sandbox}}
23:27, апрель 4, 2025 MDT [refresh]
Hebrew
{{Time|mst|lang=he}}
{{Time}}
23:27, אפריל 4, 2025 MDT [refresh]
{{Time/sandbox}}
23:27, אפריל 4, 2025 MDT [refresh]
Standard Timezone
No DST
|dst=no
and EST|dst=false
and EST|dst=0
and EST|dst=no
, EST, and |df=dmy
Always DST
Auto DST
Other timezones (aliases)
UTC offsets
Hour
Hour and symbol at end
Hour and minute
Hour and decimal
{{Time|05.75|hide-refresh=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 UTC+05:45 | 2025-04-05T11:12 UTC+05:45 |
{{Time|05.75|hide-tz=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 [refresh] | 2025-04-05T11:12 [refresh] |
{{Time|05.75|unlink-tz=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 UTC+05:45 [refresh] | 2025-04-05T11:12 UTC+05:45 [refresh] |
{{Time|05.222}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – unknown timezone 05.222 (help) | {{time}} – unknown timezone 05.222 (help) |
Day of the week
Hour or minute
{{Time|df=H12}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid date format h12 (help) | {{time}} – invalid date format h12 (help) |
{{Time|EST|df=H24}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid date format h24 (help) | {{time}} – invalid date format h24 (help) |
{{Time|EST|df=min}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid date format min (help) | {{time}} – invalid date format min (help) |
Is DST active?
Script error: The function "dst" does not exist.
Script error: The function "dst" does not exist.
Script error: The function "dst" does not exist.
Script error: The function "dst" does not exist.
Script error: The function "dst" does not exist.
Error causing inputs
{{Time|bob}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – unknown timezone bob (help) | {{time}} – unknown timezone bob (help) |
{{Time|CST|Realtime;)}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid date format realtime;) (help) | {{time}} – invalid date format realtime;) (help) |
{{Time|111.25}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – unknown timezone 111.25 (help) | {{time}} – unknown timezone 111.25 (help) |
{{Time|±1}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid use of ± (help) | {{time}} – invalid use of ± (help) |
{{Time|WAD|dmy}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – unknown timezone wad (help) | {{time}} – unknown timezone wad (help) |
{{Time|1|1}}
{{Time}} | {{Time/sandbox}} |
---|---|
{{time}} – invalid date format 1 (help) | {{time}} – invalid date format 1 (help) |
Parameter hide-refresh
{{Time|hide-refresh=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
05:27, 5 April 2025 UTC | 05:27, 5 April 2025 UTC |
{{Time|hide-refresh=true}}
{{Time}} | {{Time/sandbox}} |
---|---|
05:27, 5 April 2025 UTC | 05:27, 5 April 2025 UTC |
Parameter unlink-tz
{{Time|05.75|unlink-tz=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 UTC+05:45 [refresh] | 2025-04-05T11:12 UTC+05:45 [refresh] |
{{Time|05.75|unlink-tz=true}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 UTC+05:45 [refresh] | 2025-04-05T11:12 UTC+05:45 [refresh] |
Parameter hide-tz
{{Time|05.75|hide-tz=yes}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 [refresh] | 2025-04-05T11:12 [refresh] |
{{Time|05.75|hide-tz=true}}
{{Time}} | {{Time/sandbox}} |
---|---|
2025-04-05T11:12 [refresh] | 2025-04-05T11:12 [refresh] |