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
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}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HST during daylight
{{Time|HST}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]}
Hawaii HDT during standard time
{{Time|HDT}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HDT during daylight
{{Time|HDT}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HAST during standard time
{{Time|HAST}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HAST during daylight
{{Time|HAST}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HADT during standard time
{{Time|HADT}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Hawaii HADT during daylight
{{Time|HADT}}
{{Time}}
13:32, August 14, 2026 HDT [refresh]
{{Time/sandbox}}
13:32, August 14, 2026 HDT [refresh]
Standard date format
By parameter 2
By parameter df
|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
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}}
4:32 p. m., 14 August 2026 MDT [refresh]
{{Time/sandbox}}
4:32 p. m., 14 August 2026 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}}
10:32 p. m., 14 August 2026 UTC [refresh]
{{Time/sandbox}}
10:32 p. m., 14 August 2026 UTC [refresh]
lang
Spanish
{{Time|mst|lang=es}}
{{Time}}
16:32, agosto 14, 2026 MDT [refresh]
{{Time/sandbox}}
16:32, agosto 14, 2026 MDT [refresh]
Russian
{{Time|mst|lang=ru}}
{{Time}}
16:32, август 14, 2026 MDT [refresh]
{{Time/sandbox}}
16:32, август 14, 2026 MDT [refresh]
Hebrew
{{Time|mst|lang=he}}
{{Time}}
16:32, אוגוסט 14, 2026 MDT [refresh]
{{Time/sandbox}}
16:32, אוגוסט 14, 2026 MDT [refresh]
Standard Timezone
No DST
|dst=no and EST|dst=false and EST|dst=0 and EST|dst=no, EST, and |df=dmyAlways 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}} |
|---|---|
| 2026-08-15T04:17 UTC+05:45 | 2026-08-15T04:17 UTC+05:45 |
{{Time|05.75|hide-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 [refresh] | 2026-08-15T04:17 [refresh] |
{{Time|05.75|unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 UTC+05:45 [refresh] | 2026-08-15T04:17 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}} |
|---|---|
| 22:32, 14 August 2026 UTC | 22:32, 14 August 2026 UTC |
{{Time|hide-refresh=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 22:32, 14 August 2026 UTC | 22:32, 14 August 2026 UTC |
Parameter unlink-tz
{{Time|05.75|unlink-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 UTC+05:45 [refresh] | 2026-08-15T04:17 UTC+05:45 [refresh] |
{{Time|05.75|unlink-tz=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 UTC+05:45 [refresh] | 2026-08-15T04:17 UTC+05:45 [refresh] |
Parameter hide-tz
{{Time|05.75|hide-tz=yes}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 [refresh] | 2026-08-15T04:17 [refresh] |
{{Time|05.75|hide-tz=true}}
| {{Time}} | {{Time/sandbox}} |
|---|---|
| 2026-08-15T04:17 [refresh] | 2026-08-15T04:17 [refresh] |
Parameter dateonly
Parameter timeonly
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.