Template:Time/testcases
| 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
16:05, November 2, 2018 MDT [refresh]
16:05, November 2, 2018 MDT [refresh]
change to Hawaii–Aleutian abbreviation
[edit source]Hawaii HST during standard time
[edit source]{{Time|HST}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HST during daylight
[edit source]{{Time|HST}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]}
Hawaii HDT during standard time
[edit source]{{Time|HDT}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HDT during daylight
[edit source]{{Time|HDT}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HAST during standard time
[edit source]{{Time|HAST}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HAST during daylight
[edit source]{{Time|HAST}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HADT during standard time
[edit source]{{Time|HADT}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Hawaii HADT during daylight
[edit source]{{Time|HADT}}
{{Time}}
04:50, May 3, 2026 HDT [refresh]
{{Time/sandbox}}
04:50, May 3, 2026 HDT [refresh]
Standard date format
[edit source]By parameter 2
[edit source]By parameter df
[edit source]|df=|df=dmy|df=dmy24|df=dmy12|df=mdy|df=mdy24|df=mdy12|df=iso|df=y|df=12|df=24|df=dowcustom date format
[edit source]df-cust
[edit source]{{Time|mst|df-cust=U}}
{{Time}}
{{Time/sandbox}}
df-cust-a
[edit source]{{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
[edit source]{{Time|mst|df-cust=g:i "p. m.", j F Y}}
{{Time}}
7:50 p. m., 3 May 2026 MDT [refresh]
{{Time/sandbox}}
7:50 p. m., 3 May 2026 MDT [refresh]
df-cust-p and df-cust-p; |_TEST_TIME_=2018-11-02T09:05:00
[edit source]{{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
[edit source]{{Time|df-cust-a=g:i "ᴀᴍ", j F Y |df-cust-p=g:i "p. m.", j F Y}}
{{Time}}
1:50 ᴀᴍ, 3 May 2026 UTC [refresh]
{{Time/sandbox}}
1:50 ᴀᴍ, 3 May 2026 UTC [refresh]
lang
[edit source]Spanish
[edit source]{{Time|mst|lang=es}}
{{Time}}
07:50, mayo 3, 2026 MDT [refresh]
{{Time/sandbox}}
07:50, mayo 3, 2026 MDT [refresh]
Russian
[edit source]{{Time|mst|lang=ru}}
{{Time}}
07:50, май 3, 2026 MDT [refresh]
{{Time/sandbox}}
07:50, май 3, 2026 MDT [refresh]
Hebrew
[edit source]{{Time|mst|lang=he}}
{{Time}}
07:50, מאי 3, 2026 MDT [refresh]
{{Time/sandbox}}
07:50, מאי 3, 2026 MDT [refresh]
Standard Timezone
[edit source]No DST
[edit source]|dst=no and EST|dst=false and EST|dst=0 and EST|dst=no, EST, and |df=dmyAlways DST
[edit source]Auto DST
[edit source]Other timezones (aliases)
[edit source]UTC offsets
[edit source]Hour
[edit source]Hour and symbol at end
[edit source]Hour and minute
[edit source]Hour and decimal
[edit source]{{Time|05.75|hide-refresh=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 UTC+05:45 | 2026-05-03T19:35 UTC+05:45 |
{{Time|05.75|hide-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 [refresh] | 2026-05-03T19:35 [refresh] |
{{Time|05.75|unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 UTC+05:45 [refresh] | 2026-05-03T19:35 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
[edit source]Hour or minute
[edit source]{{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?
[edit source]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
[edit source]{{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
[edit source]{{Time|hide-refresh=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 13:50, 3 May 2026 UTC | 13:50, 3 May 2026 UTC |
{{Time|hide-refresh=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 13:50, 3 May 2026 UTC | 13:50, 3 May 2026 UTC |
Parameter unlink-tz
[edit source]{{Time|05.75|unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 UTC+05:45 [refresh] | 2026-05-03T19:35 UTC+05:45 [refresh] |
{{Time|05.75|unlink-tz=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 UTC+05:45 [refresh] | 2026-05-03T19:35 UTC+05:45 [refresh] |
Parameter hide-tz
[edit source]{{Time|05.75|hide-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 [refresh] | 2026-05-03T19:35 [refresh] |
{{Time|05.75|hide-tz=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-05-03T19:35 [refresh] | 2026-05-03T19:35 [refresh] |