Jump to content

Template:Time/testcases

From Wikipedia, the free encyclopedia

Module:Time | Module:Time/sandbox

12:05, November 2, 2018 MDT [refresh]

12:05, November 2, 2018 MDT [refresh]

change to Hawaii–Aleutian abbreviation

[edit]

Hawaii HST during standard time

[edit]
{{Time|HST}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HST during daylight

[edit]
{{Time|HST}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]}

Hawaii HDT during standard time

[edit]
{{Time|HDT}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HDT during daylight

[edit]
{{Time|HDT}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HAST during standard time

[edit]
{{Time|HAST}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HAST during daylight

[edit]
{{Time|HAST}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HADT during standard time

[edit]
{{Time|HADT}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

Hawaii HADT during daylight

[edit]
{{Time|HADT}}

{{Time}}

23:52, December 21, 2024 HST [refresh]

{{Time/sandbox}}

23:52, December 21, 2024 HST [refresh]

custom date format

[edit]

df-cust

[edit]
{{Time|mst|df-cust=U}}

{{Time}}

1734835952 MST [refresh]

{{Time/sandbox}}

1734835952 MST [refresh]

df-cust-a

[edit]
{{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]
{{Time|mst|df-cust=g:i "p. m.", j F Y}}

{{Time}}

2:52 p. m., 22 December 2024 MST [refresh]

{{Time/sandbox}}

2:52 p. m., 22 December 2024 MST [refresh]

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}}

{{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}}

{{Time}}

9:52 ᴀᴍ, 22 December 2024 UTC [refresh]

{{Time/sandbox}}

9:52 ᴀᴍ, 22 December 2024 UTC [refresh]

lang

[edit]

Spanish

[edit]
{{Time|mst|lang=es}}

{{Time}}

02:52, diciembre 22, 2024 MST [refresh]

{{Time/sandbox}}

02:52, diciembre 22, 2024 MST [refresh]

Russian

[edit]
{{Time|mst|lang=ru}}

{{Time}}

02:52, декабрь 22, 2024 MST [refresh]

{{Time/sandbox}}

02:52, декабрь 22, 2024 MST [refresh]

Hebrew

[edit]
{{Time|mst|lang=he}}

{{Time}}

02:52, דצמבר 22, 2024 MST [refresh]

{{Time/sandbox}}

02:52, דצמבר 22, 2024 MST [refresh]


Standard Timezone

[edit]

No DST

[edit]
|dst=no and EST
{{Time|EST|dst=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]
|dst=false and EST
{{Time|EST|dst=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]
|dst=0 and EST
{{Time|EST|dst=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]
|dst=no, EST, and |df=dmy
{{Time|EST|df=dmy |dst=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, 22 December 2024 EST [refresh] 04:52, 22 December 2024 EST [refresh]

Always DST

[edit]
{{Time}}
{{Time|EST|dst=always}}
Side by side comparison
{{Time}}{{Time/sandbox}}
05:52, December 22, 2024 EDT [refresh] 05:52, December 22, 2024 EDT [refresh]

Auto DST

[edit]
{{Time}}
{{Time|EST|test_time=2020-06-05}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]

{{Time}}
{{Time|EST|test_time=2020-01-05}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]

{{Time}}
{{Time|EST}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]

Other timezones (aliases)

[edit]
{{Time}}
{{Time|EDT}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]

{{Time}}
{{Time|ET}}
Side by side comparison
{{Time}}{{Time/sandbox}}
04:52, December 22, 2024 EST [refresh] 04:52, December 22, 2024 EST [refresh]

UTC offsets

[edit]

Hour

[edit]
{{Time}}
{{Time|utc+05:00}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

{{Time}}
{{Time|+5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

{{Time}}
{{Time|5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

{{Time}}
{{Time|-5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:52 UTC−05:00 [refresh] 2024-12-22T04:52 UTC−05:00 [refresh]

{{Time}}
{{Time|+05}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

{{Time}}
{{Time|05}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

{{Time}}
{{Time|-05}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:52 UTC−05:00 [refresh] 2024-12-22T04:52 UTC−05:00 [refresh]

Hour and symbol at end

[edit]
{{Time}}
{{Time|-05.}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:52 UTC−05:00 [refresh] 2024-12-22T04:52 UTC−05:00 [refresh]

{{Time}}
{{Time|+05:}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T14:52 UTC+05:00 [refresh] 2024-12-22T14:52 UTC+05:00 [refresh]

Hour and minute

[edit]
{{Time}}
{{Time|+05:30}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:22 UTC+05:30 [refresh] 2024-12-22T15:22 UTC+05:30 [refresh]

{{Time}}
{{Time|5:30}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:22 UTC+05:30 [refresh] 2024-12-22T15:22 UTC+05:30 [refresh]

{{Time}}
{{Time|-5:30}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:22 UTC−05:30 [refresh] 2024-12-22T04:22 UTC−05:30 [refresh]

{{Time}}
{{Time|-5:31}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:21 UTC−05:31 [refresh] 2024-12-22T04:21 UTC−05:31 [refresh]

Hour and decimal

[edit]
{{Time}}
{{Time|5.5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:22 UTC+05:30 [refresh] 2024-12-22T15:22 UTC+05:30 [refresh]

{{Time}}
{{Time|+05.5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:22 UTC+05:30 [refresh] 2024-12-22T15:22 UTC+05:30 [refresh]

{{Time}}
{{Time|-05.5}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:22 UTC−05:30 [refresh] 2024-12-22T04:22 UTC−05:30 [refresh]

{{Time}}
{{Time|+5.25}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:07 UTC+05:15 [refresh] 2024-12-22T15:07 UTC+05:15 [refresh]

{{Time}}
{{Time|05.25}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:07 UTC+05:15 [refresh] 2024-12-22T15:07 UTC+05:15 [refresh]

{{Time}}
{{Time|−5.75}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:07 UTC−05:45 [refresh] 2024-12-22T04:07 UTC−05:45 [refresh]

{{Time}}
{{Time|05.75}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

{{Time}}
{{Time|05.75|hide-refresh=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 2024-12-22T15:37 UTC+05:45

{{Time}}
{{Time|05.75|hide-tz=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 [refresh] 2024-12-22T15:37 [refresh]

{{Time}}
{{Time|05.75|unlink-tz=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

{{Time}}
{{Time|−5.2}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T04:40 UTC−05:12 [refresh] 2024-12-22T04:40 UTC−05:12 [refresh]

{{Time}}
{{Time|05.2}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:04 UTC+05:12 [refresh] 2024-12-22T15:04 UTC+05:12 [refresh]

{{Time}}
{{Time|05.222}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – unknown timezone 05.222 (help) {{time}} – unknown timezone 05.222 (help)

Day of the week

[edit]
{{Time}}
{{Time|df=dow}}
Side by side comparison
{{Time}}{{Time/sandbox}}
Sunday UTC [refresh] Sunday UTC [refresh]

{{Time}}
{{Time|EST|df=dow}}
Side by side comparison
{{Time}}{{Time/sandbox}}
Sunday EST [refresh] Sunday EST [refresh]

Hour or minute

[edit]
{{Time}}
{{Time|df=H12}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid date format h12 (help) {{time}} – invalid date format h12 (help)

{{Time}}
{{Time|EST|df=H24}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid date format h24 (help) {{time}} – invalid date format h24 (help)

{{Time}}
{{Time|EST|df=min}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid date format min (help) {{time}} – invalid date format min (help)

Is DST active?

[edit]

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]
{{Time}}
{{Time|bob}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – unknown timezone bob (help) {{time}} – unknown timezone bob (help)

{{Time}}
{{Time|CST|Realtime;)}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid date format realtime;) (help) {{time}} – invalid date format realtime;) (help)

{{Time}}
{{Time|111.25}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – unknown timezone 111.25 (help) {{time}} – unknown timezone 111.25 (help)

{{Time}}
{{Time|±1}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid use of ± (help) {{time}} – invalid use of ± (help)

{{Time}}
{{Time|WAD|dmy}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – unknown timezone wad (help) {{time}} – unknown timezone wad (help)

{{Time}}
{{Time|1|1}}
Side by side comparison
{{Time}}{{Time/sandbox}}
{{time}} – invalid date format 1 (help) {{time}} – invalid date format 1 (help)

Parameter hide-refresh

[edit]
yes
{{Time|hide-refresh=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC 09:52, 22 December 2024 UTC
true
{{Time|hide-refresh=true}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC 09:52, 22 December 2024 UTC

no
{{Time|hide-refresh=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC [refresh] 09:52, 22 December 2024 UTC [refresh]
false
{{Time|hide-refresh=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC [refresh] 09:52, 22 December 2024 UTC [refresh]
0
{{Time|hide-refresh=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC [refresh] 09:52, 22 December 2024 UTC [refresh]
<empty>
{{Time|hide-refresh=}}
Side by side comparison
{{Time}}{{Time/sandbox}}
09:52, 22 December 2024 UTC [refresh] 09:52, 22 December 2024 UTC [refresh]
[edit]
yes
{{Time|05.75|unlink-tz=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
true
{{Time|05.75|unlink-tz=true}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

no
{{Time|05.75|unlink-tz=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
false
{{Time|05.75|unlink-tz=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
0
{{Time|05.75|unlink-tz=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
<empty>
{{Time|05.75|unlink-tz=}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

Parameter hide-tz

[edit]
yes
{{Time|05.75|hide-tz=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 [refresh] 2024-12-22T15:37 [refresh]
true
{{Time|05.75|hide-tz=true}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 [refresh] 2024-12-22T15:37 [refresh]

no
{{Time|05.75|hide-tz=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
false
{{Time|05.75|hide-tz=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
0
{{Time|05.75|hide-tz=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
<empty>
{{Time|05.75|hide-tz=}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

Parameter dateonly

[edit]
yes
{{Time|05.75|dateonly=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22 UTC+05:45 [refresh] 2024-12-22 UTC+05:45 [refresh]
true
{{Time|05.75|dateonly=true}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22 UTC+05:45 [refresh] 2024-12-22 UTC+05:45 [refresh]

no
{{Time|05.75|dateonly=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
false
{{Time|05.75|dateonly=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
0
{{Time|05.75|dateonly=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
<empty>
{{Time|05.75|dateonly=}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]

Parameter timeonly

[edit]
yes
{{Time|05.75|timeonly=yes}}
Side by side comparison
{{Time}}{{Time/sandbox}}
15:37 UTC+05:45 [refresh] 15:37 UTC+05:45 [refresh]
true
{{Time|05.75|timeonly=true}}
Side by side comparison
{{Time}}{{Time/sandbox}}
15:37 UTC+05:45 [refresh] 15:37 UTC+05:45 [refresh]

no
{{Time|05.75|timeonly=no}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
false
{{Time|05.75|timeonly=false}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
0
{{Time|05.75|timeonly=0}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]
<empty>
{{Time|05.75|timeonly=}}
Side by side comparison
{{Time}}{{Time/sandbox}}
2024-12-22T15:37 UTC+05:45 [refresh] 2024-12-22T15:37 UTC+05:45 [refresh]