Template:Time/testcases
Appearance
| 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
Change to Hawaii–Aleutian abbreviation
[edit]Hawaii HST during standard time
[edit]Hawaii HST during daylight
[edit]Hawaii HDT during standard time
[edit]Hawaii HDT during daylight
[edit]Hawaii HAST during standard time
[edit]Hawaii HAST during daylight
[edit]Hawaii HADT during standard time
[edit]Hawaii HADT during daylight
[edit]Standard date format
[edit]MST only
By parameter 2
[edit]MST and <empty>
MST and dmy
MST and dmy24
MST and dmy12
MST and mdy
MST and mdy24
MST and mdy12
MST and iso
MST and y
MST and 12
MST and 24
By parameter df
[edit]MST and
|df=MST and
|df=dmyMST and
|df=dmy24MST and
|df=dmy12MST and
|df=mdyMST and
|df=mdy24MST and
|df=mdy12MST and
|df=isoMST and
|df=yMST and
|df=12MST and
|df=24custom date format
[edit]df-cust
[edit]{{Time|mst|df-cust=U |no-js=true}}
{{Time}}
{{Time/sandbox}}
df-cust-a
[edit]{{Time|mst|df-cust-a=g:i "ᴀᴍ", j F Y |no-js=true}}
{{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]{{Time|mst|df-cust=g:i "p. m.", j F Y |no-js=true}}
{{Time}}
1:30 p. m., 3 October 2026 MDT [refresh]
{{Time/sandbox}}
df-cust-p and df-cust-p; |_TEST_TIME_=2018-11-02T09:05:00
[edit]{{Time|df-cust=g:i "p. m.", j F Y |df-cust-a=g:i "ᴀᴍ", j F Y |no-js=true}}
{{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]{{Time|df-cust-a=g:i "ᴀᴍ", j F Y |df-cust-p=g:i "p. m.", j F Y |no-js=true}}
{{Time}}
7:30 p. m., 3 October 2026 UTC [refresh]
{{Time/sandbox}}
lang
[edit]Spanish
[edit]{{Time|mst|lang=es |no-js=true}}
{{Time}}
13:30, octubre 3, 2026 MDT [refresh]
{{Time/sandbox}}
Russian
[edit]{{Time|mst|lang=ru |no-js=true}}
{{Time}}
13:30, октябрь 3, 2026 MDT [refresh]
{{Time/sandbox}}
Hebrew
[edit]{{Time|mst|lang=he |no-js=true}}
{{Time}}
13:30, אוקטובר 3, 2026 MDT [refresh]
{{Time/sandbox}}
Standard Timezone
[edit]No DST
[edit]|dst=no and EST|dst=false and EST|dst=0 and ESTAlways DST
[edit]Auto DST
[edit]Other timezones (aliases)
[edit]UTC offsets
[edit]Hour
[edit]Hour and symbol at end
[edit]Hour and minute
[edit]Hour and decimal
[edit]{{Time|05.75|hide-refresh=yes |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 UTC+05:45 | UTC+05:45 |
{{Time|05.75|hide-tz=yes |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 [refresh] | [refresh] |
{{Time|05.75|no-js=true |unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 UTC+05:45 [refresh] | UTC+05:45 [refresh] |
{{Time|05.222|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – unknown timezone 05.222 (help) | {{Time}} – unknown timezone 05.222 (help) |
Day of the week
[edit]Hour or minute
[edit]{{Time|df=H12 |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid date format h12 (help) | {{Time}} – invalid date format h12 (help) |
{{Time|EST|df=H24 |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid date format h24 (help) | {{Time}} – invalid date format h24 (help) |
{{Time|EST|df=min |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid date format min (help) | {{Time}} – invalid date format min (help) |
Error causing inputs
[edit]{{Time|bob|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – unknown timezone bob (help) | {{Time}} – unknown timezone bob (help) |
{{Time|CST|Realtime;)|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid date format realtime;) (help) | {{Time}} – invalid date format realtime;) (help) |
{{Time|111.25|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – unknown timezone 111.25 (help) | {{Time}} – unknown timezone 111.25 (help) |
{{Time|±1|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid use of ± (help) | {{Time}} – invalid use of ± (help) |
{{Time|WAD|dmy|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – unknown timezone wad (help) | {{Time}} – unknown timezone wad (help) |
{{Time|1|1|no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| {{Time}} – invalid date format 1 (help) | {{Time}} – invalid date format 1 (help) |
Parameter hide-refresh
[edit]yes
{{Time|hide-refresh=yes |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 19:30, 3 October 2026 UTC | UTC |
true
{{Time|hide-refresh=true |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 19:30, 3 October 2026 UTC | UTC |
no
false
0
Parameter unlink-tz
[edit]yes
{{Time|05.75|no-js=true |unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 UTC+05:45 [refresh] | UTC+05:45 [refresh] |
true
{{Time|05.75|no-js=true |unlink-tz=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 UTC+05:45 [refresh] | UTC+05:45 [refresh] |
no
false
0
Parameter hide-tz
[edit]yes
{{Time|05.75|hide-tz=yes |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 [refresh] | [refresh] |
true
{{Time|05.75|hide-tz=true |no-js=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-10-04T01:15 [refresh] | [refresh] |
no
false
0
Parameter dateonly
[edit]yes
true
no
false
0
Parameter timeonly
[edit]yes
true
no
false
0