Module talk:Date time/testcases
43 of 241 live tests failed. 91 of 241 sandbox tests failed. (refresh)
test_01_valid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|1999}} | ||||
| {{#invoke:Date time|validate_date_time|1999|2}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|1}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|5}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|5|3}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|5|3|2}} |
test_02_min_max_values
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|1999|1}} | ||||
| {{#invoke:Date time|validate_date_time|1999|12}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|00}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|23}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|00|00}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|23|59}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|00|00}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|23|59}} | ||||
| {{#invoke:Date time|validate_date_time|1999|1|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|2|28}} | ||||
| {{#invoke:Date time|validate_date_time|1999|3|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|4|30}} | ||||
| {{#invoke:Date time|validate_date_time|1999|5|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|6|30}} | ||||
| {{#invoke:Date time|validate_date_time|1999|7|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|8|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|9|30}} | ||||
| {{#invoke:Date time|validate_date_time|1999|10|31}} | ||||
| {{#invoke:Date time|validate_date_time|1999|11|30}} | ||||
| {{#invoke:Date time|validate_date_time|1999|12|31}} |
test_03_leap_year
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|2000|02|29}} |
test_04_leading_zeros
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|1999|02}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|05}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|05|05}} | ||||
| {{#invoke:Date time|validate_date_time|1999|02|01|05|05|05}} |
test_05_timezone
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||Z}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−12:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−02:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−02:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−01:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−01:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+00:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+01:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+01:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+14:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−12}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−02}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−01}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+01}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+14}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−2:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−2:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−1:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||−1:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+0:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||+1:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-12:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-12}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-01:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-1:30}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-01:00}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|01|10|||-1:00}} |
test_06_df
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|2000|02|29|df=yes}} | ||||
| {{#invoke:Date time|validate_date_time|2000|02|29|df=y}} |
test_09_errors
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|validate_date_time|}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|3=20}} | <strong class="error">Error: Month value is required when a day is provided</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Month value is required when a day is provided</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Month value is required when a day is provided</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|-1}} | <strong class="error">Error: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|13}} | <strong class="error">Error: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid month</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|01|-1}} | <strong class="error">Error: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|32}} | <strong class="error">Error: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 1 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|2|29}} | <strong class="error">Error: Value is not a valid day (Month 2 has 28 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 2 has 28 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 2 has 28 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|3|32}} | <strong class="error">Error: Value is not a valid day (Month 3 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 3 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 3 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|4|31}} | <strong class="error">Error: Value is not a valid day (Month 4 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 4 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 4 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|5|32}} | <strong class="error">Error: Value is not a valid day (Month 5 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 5 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 5 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|6|31}} | <strong class="error">Error: Value is not a valid day (Month 6 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 6 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 6 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|7|32}} | <strong class="error">Error: Value is not a valid day (Month 7 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 7 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 7 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|8|32}} | <strong class="error">Error: Value is not a valid day (Month 8 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 8 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 8 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|9|31}} | <strong class="error">Error: Value is not a valid day (Month 9 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 9 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 9 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|10|32}} | <strong class="error">Error: Value is not a valid day (Month 10 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 10 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 10 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|11|31}} | <strong class="error">Error: Value is not a valid day (Month 11 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 11 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 11 has 30 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|12|32}} | <strong class="error">Error: Value is not a valid day (Month 12 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid day (Month 12 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid day (Month 12 has 31 days)</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|010}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|020}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|010}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|023}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|033}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|001}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|002}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|001}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|3|002}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|3|1|003}} | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Values cannot have unnecessary leading zeros</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|-1}} | <strong class="error">Error: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|-2}} | <strong class="error">Error: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|-3}} | <strong class="error">Error: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|25}} | <strong class="error">Error: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|60}} | <strong class="error">Error: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid minute</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|60}} | <strong class="error">Error: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid second</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2||30}} | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|||05}} | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|-13:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|+15:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|-13}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|+15}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|-00:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|-00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|ABC}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|05:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|005:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|05:000}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2|1|2|59|05:00:00}} | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Value is not a valid timezone</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2||||+04:00}} | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|abc|1|2}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|abc|2}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|2|abc}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|2|3|abc}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|2|3|4|abc}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|2|3|4|5|abc}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1.5|2}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|1999|1|2.}} | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: All values must be integers</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|df=no}} | <strong class="error">Error: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|df=Y}} | <strong class="error">Error: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: df must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|p=no}} | <strong class="error">Error: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|p=Y}} | <strong class="error">Error: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: p must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|paren=no}} | <strong class="error">Error: paren must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: paren must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: paren must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|p=Y|paren=no}} | <strong class="error">Error: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|p=y|paren=no}} | <strong class="error">Error: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Duplicate parameters used: p and paren</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|br=no}} | <strong class="error">Error: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|validate_date_time|2000|02|29|br=Y}} | <strong class="error">Error: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: br must be either "yes" or "y"</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] |
test_10_generate_date_valid_start_date
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|2000}} | 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000</span>)</span> | 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000</span>)</span> | 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02}} | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29}} | February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|df=yes}} | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|df=y}} | 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11}} | 11:00, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | 11:00, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | 11:00, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5}} | 11:05, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | 11:05, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | 11:05, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29}} | 11:05:29, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | 11:05:29, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | 11:05:29, February 29, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29|Z}} | 11:05:29, February 29, 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | 11:05:29, February 29, 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | 11:05:29, February 29, 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29|+5:00}} | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|df=y}} | 11:00, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | 11:00, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | 11:00, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:00:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|df=y}} | 11:05, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | 11:05, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | 11:05, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29|df=y}} | 11:05:29, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | 11:05:29, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | 11:05:29, 29 February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29|Z|df=y}} | 11:05:29, 29 February 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | 11:05:29, 29 February 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | 11:05:29, 29 February 2000 (UTC)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29Z</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|11|5|29|+5:00|df=y}} | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T11:05:29+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|29|5|2|3|+5:00|df=y}} | 05:02:03, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T05:02:03+05:00</span>)</span> | 05:02:03, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T05:02:03+05:00</span>)</span> | 05:02:03, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-29T05:02:03+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|01|5|2|3|+5:00}} | 05:02:03, February 1, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | 05:02:03, February 1, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | 05:02:03, February 1, 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|02|01|5|2|3|+5:00|df=y}} | 05:02:03, 1 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | 05:02:03, 1 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | 05:02:03, 1 February 2000 (+05:00)<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01T05:02:03+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|2}} | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | February 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|2|1}} | February 1, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01</span>)</span> | February 1, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01</span>)</span> | February 1, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|11}} | November 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11</span>)</span> | November 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11</span>)</span> | November 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11</span>)</span> | |
| {{#invoke:Date time|generate_date|2000|11|30}} | November 30, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11-30</span>)</span> | November 30, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11-30</span>)</span> | November 30, 2000<span style="display: none;"> (<span class="bday dtstart published updated itvstart">2000-11-30</span>)</span> |
test_11_generate_date_valid_end_date
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|template=end date|2000|02|29|11|5|29|+5:00}} | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, February 29, 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date|2000|02|29|11|5|29|+5:00|df=y}} | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> | 11:05:29, 29 February 2000 (+05:00)<span style="display: none;"> (<span class="dtend itvend">2000-02-29T11:05:29+05:00</span>)</span> |
test_12_generate_date_valid_date_display
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|2000|02|01|5|2|3|+5:00}} | 05:02:03, February 1, 2000 (+05:00) | 05:02:03, February 1, 2000 (+05:00) | 05:02:03, February 1, 2000 (+05:00) | |
| {{#invoke:Date time|generate_date|2000|02|01|5|2|3|+5:00|df=y}} | 05:02:03, 1 February 2000 (+05:00) | 05:02:03, 1 February 2000 (+05:00) | 05:02:03, 1 February 2000 (+05:00) | |
| {{#invoke:Date time|generate_date|template=end date|2000|02|01|5|2|3|+5:00}} | 05:02:03, February 1, 2000 (+05:00) | 05:02:03, February 1, 2000 (+05:00) | 05:02:03, February 1, 2000 (+05:00) | |
| {{#invoke:Date time|generate_date|template=end date|2000|02|01|5|2|3|+5:00|df=y}} | 05:02:03, 1 February 2000 (+05:00) | 05:02:03, 1 February 2000 (+05:00) | 05:02:03, 1 February 2000 (+05:00) |
test_15_generate_date_invalid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||02}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||02|29}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||||11}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||||11|5}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||||11|5|29}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date||||11|5|29|Z}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|||||||Z}} | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|2000||||||Z}} | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|2000|5|||||Z}} | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|2000|5|6||||Z}} | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: A timezone cannot be set without a day and hour</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|2000|5|6||5||Z}} | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|2000|5|6||5|3|Z}} | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">ERROR: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Minutes and seconds require an hour value</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date|template=start date text|2000|02|29|11|5|29|+5:00|df=y}} | <strong class="error">Error: Template not supported</strong> <small>[[:Template:start date text|(help)]]</small> | <strong class="error">ERROR: Template not supported</strong> <small>[[:Template:start date text|(help)]]</small> | <strong class="error">Error: Template not supported</strong> <small>[[:Template:start date text|(help)]]</small> |
test_20_generate_start_date_age_valid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|template=start date and age|1999}} | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2}} | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|1}} | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|br=y}} | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|br=y}} | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|1|br=y}} | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|p=y}} | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|p=y}} | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|1|p=y}} | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|p=y|br=y}} | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|p=y|br=y}} | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|1999|2|1|p=y|br=y}} | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="bday dtstart published updated">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|2026}} | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026</span>)</span> | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026</span>)</span> | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|2026|06}} | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06</span>)</span> | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06</span>)</span> | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06</span>)</span> | |
| {{#invoke:Date time|generate_date|template=start date and age|2026|06|08}} | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06-08</span>)</span> | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06-08</span>)</span> | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="bday dtstart published updated">2026-06-08</span>)</span> |
test_21_generate_end_date_age_valid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date|template=end date and age|1999}} | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2}} | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|1}} | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">; 27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|br=y}} | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|br=y}} | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|1|br=y}} | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint">;<br/>27 years ago</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|p=y}} | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|p=y}} | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|1|p=y}} | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"> (27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|p=y|br=y}} | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|p=y|br=y}} | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | February 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|1999|2|1|p=y|br=y}} | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | February 1, 1999<span class="noprint"><br/>(27 years ago)</span><span style="display: none;"> (<span class="dtend">1999-02-01</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|2026}} | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="dtend">2026</span>)</span> | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="dtend">2026</span>)</span> | 2026<span class="noprint">; 0 years ago</span><span style="display: none;"> (<span class="dtend">2026</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|2026|06}} | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="dtend">2026-06</span>)</span> | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="dtend">2026-06</span>)</span> | June 2026<span class="noprint">; 0 months ago</span><span style="display: none;"> (<span class="dtend">2026-06</span>)</span> | |
| {{#invoke:Date time|generate_date|template=end date and age|2026|06|08}} | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | June 8, 2026<span class="noprint">; 0 days ago</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> |
test_22_generate_date_range_valid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|11|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12–27, 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | November 12–27, 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|11|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12–27 November 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | 12–27 November 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|12|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12 – December 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | November 12 – December 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|12|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November – 27 December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | 12 November – 27 December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2010|12|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12, 2008 – December 27, 2010<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2010-12-27</span>)</span> | November 12, 2008 – December 27, 2010<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2010-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2010|12|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November 2008 – 27 December 2010<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2010-12-27</span>)</span> | 12 November 2008 – 27 December 2010<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2010-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|present}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12, 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | November 12, 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|present|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | 12 November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||present}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||present|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | November 2008 – present<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||present}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008–present<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | 2008–present<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||present|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008–present<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> | 2008–present<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2026-06-08</span>)</span> |
test_23_generate_date_range_partial_dates
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date_range|2008|11|12|2009|}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12, 2008 – 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009</span>)</span> | November 12, 2008 – 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2009||df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November 2008 – 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009</span>)</span> | 12 November 2008 – 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | ||
| {{#invoke:Date time|generate_date_range|2008|11|12|2008||df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | ||
| {{#invoke:Date time|generate_date_range|2008|11|12|2009|11}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12, 2008 – November 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009-11</span>)</span> | November 12, 2008 – November 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009-11</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2009|11|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November 2008 – November 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009-11</span>)</span> | 12 November 2008 – November 2009<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2009-11</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|11}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | ||
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|11|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | ||
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|12}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 12, 2008 – December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | November 12, 2008 – December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11|12|2008|12|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 12 November 2008 – December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | 12 November 2008 – December 2008<span style="display: none;"> (<span class="dtstart">2008-11-12</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||2009|11|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008 – November 27, 2009<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2009-11-27</span>)</span> | 2008 – November 27, 2009<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2009-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||2009|11|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008 – 27 November 2009<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2009-11-27</span>)</span> | 2008 – 27 November 2009<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2009-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||2008|11|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008 – November 27, 2008<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | 2008 – November 27, 2008<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|||2008|11|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | 2008 – 27 November 2008<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | 2008 – 27 November 2008<span style="display: none;"> (<span class="dtstart">2008</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|11|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – November 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | November 2008 – November 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|11|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – 27 November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | November 2008 – 27 November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|12|27}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – December 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | November 2008 – December 27, 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|12|27|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November 2008 – 27 December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | November 2008 – 27 December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12-27</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|11}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November–November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11</span>)</span> | November–November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|11|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November–November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11</span>)</span> | November–November 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-11</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|12}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November–December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | November–December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | |
| {{#invoke:Date time|generate_date_range|2008|11||2008|12|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | November–December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> | November–December 2008<span style="display: none;"> (<span class="dtstart">2008-11</span>)</span><span style="display: none;"> (<span class="dtend">2008-12</span>)</span> |
test_24_generate_date_range_invalid
| Test | Live | Sandbox | Expected | |
|---|---|---|---|---|
| {{#invoke:Date time|generate_date_range|}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range|2000}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range|2000|2}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range|2000|2|1}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range||||2000}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range||||2000|2}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range||||2000|2|1}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: Year value is required</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range|2008|11|27|2008|11|12}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | |
| {{#invoke:Date time|generate_date_range|2008|11|27|2008|11|12|df=yes}} | <strong class="error"><span class="scribunto-error mw-scribunto-error-d35935e3">Script error: The function "generate_date_range" does not exist.</span></strong> | <strong class="error">ERROR: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] | <strong class="error">Error: End date is before start date</strong> <small>[[:Template:start date|(help)]]</small>[[Category:Pages using Module:Date time with invalid values]] |
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.