Template:ISOyear/testcases
Jump to navigation
Jump to search
Example Code | {{ISOyear}} | {{ISOyear/sandbox}} | Expected | Comment |
---|---|---|---|---|
{{ISOyear|debug=1|1999}} | 1999 | b1999 | ||
{{ISOyear|debug=1|1999-08}} | 1999 | d1999 | ||
{{ISOyear|debug=1|1999-08-18}} | 1999 | d1999 | ||
{{ISOyear|debug=1|1999-08-18 08:15}} | 1999 | d1999 | ||
{{ISOyear|debug=1|1999-08-18 08:15:30}} | 1999 | d1999 | ||
{{ISOyear|debug=1|1999-08-18 08:15:30Z}} | 1999 | d1999 | ||
{{ISOyear|debug=1|2111}} | 2111 | b2111 | ||
{{ISOyear|debug=1|2111-08}} | 2111 | d2111 | ||
{{ISOyear|debug=1|2111-08-18}} | 2111 | d2111 | ||
{{ISOyear|debug=1|2111-08-18 08:15}} | 2111 | d2111 | ||
{{ISOyear|debug=1|2111-08-18 08:15:30}} | 2111 | d2111 | ||
{{ISOyear|debug=1|2111-08-18 08:15:30Z}} | 2111 | d2111 | ||
{{ISOyear|debug=1|999}} | 0999 | b999 | ||
{{ISOyear|debug=1|999-08}} | 0999 | e0999 | ||
{{ISOyear|debug=1|999-08-18}} | 0999 | e0999 | ||
{{ISOyear|debug=1|999-08-18 08:15}} | 0999 | e0999 | ||
{{ISOyear|debug=1|999-08-18 08:15:30}} | 0999 | e0999 | ||
{{ISOyear|debug=1|999-08-18 08:15:30Z}} | 0999 | e0999 | ||
{{ISOyear|debug=1|111}} | 0111 | b111 | ||
{{ISOyear|debug=1|111-08}} | 0111 | e0111 | ||
{{ISOyear|debug=1|111-08-18}} | 0111 | e0111 | ||
{{ISOyear|debug=1|111-08-18 08:15}} | 0111 | e0111 | ||
{{ISOyear|debug=1|111-08-18 08:15:30}} | 0111 | e0111 | ||
{{ISOyear|debug=1|111-08-18 08:15:30Z}} | 0111 | e0111 | ||
{{ISOyear|debug=1|99}} | 0099 | b99 | ||
{{ISOyear|debug=1|99-08}} | 0099 | f0099 | ||
{{ISOyear|debug=1|99-08-18}} | 0099 | f0099 | ||
{{ISOyear|debug=1|99-08-18 08:15}} | 0099 | f0099 | ||
{{ISOyear|debug=1|99-08-18 08:15:30}} | 0099 | f0099 | ||
{{ISOyear|debug=1|99-08-18 08:15:30Z}} | 0099 | f0099 | ||
{{ISOyear|debug=1|11}} | 0011 | b11 | ||
{{ISOyear|debug=1|11-08}} | 0011 | f0011 | ||
{{ISOyear|debug=1|11-08-18}} | 0011 | f0011 | ||
{{ISOyear|debug=1|11-08-18 08:15}} | 0011 | f0011 | ||
{{ISOyear|debug=1|11-08-18 08:15:30}} | 0011 | f0011 | ||
{{ISOyear|debug=1|11-08-18 08:15:30Z}} | 0011 | f0011 | ||
{{ISOyear|debug=1|0999}} | 0999 | b0999 | ||
{{ISOyear|debug=1|0999-08}} | 0999 | d0999 | ||
{{ISOyear|debug=1|0999-08-18}} | 0999 | d0999 | ||
{{ISOyear|debug=1|0999-08-18 08:15}} | 0999 | d0999 | ||
{{ISOyear|debug=1|0999-08-18 08:15:30}} | 0999 | d0999 | ||
{{ISOyear|debug=1|0999-08-18 08:15:30Z}} | 0999 | d0999 | ||
{{ISOyear|debug=1|0111}} | 0111 | b0111 | ||
{{ISOyear|debug=1|0111-08}} | 0111 | d0111 | ||
{{ISOyear|debug=1|0111-08-18}} | 0111 | d0111 | ||
{{ISOyear|debug=1|0111-08-18 08:15}} | 0111 | d0111 | ||
{{ISOyear|debug=1|0111-08-18 08:15:30}} | 0111 | d0111 | ||
{{ISOyear|debug=1|0111-08-18 08:15:30Z}} | 0111 | d0111 | ||
{{ISOyear|debug=1|0099}} | 0099 | b0099 | ||
{{ISOyear|debug=1|0099-08}} | 0099 | d0099 | ||
{{ISOyear|debug=1|0099-08-18}} | 0099 | d0099 | ||
{{ISOyear|debug=1|0099-08-18 08:15}} | 0099 | d0099 | ||
{{ISOyear|debug=1|0099-08-18 08:15:30}} | 0099 | d0099 | ||
{{ISOyear|debug=1|0099-08-18 08:15:30Z}} | 0099 | d0099 | ||
{{ISOyear|debug=1|0011}} | 0011 | b0011 | ||
{{ISOyear|debug=1|0011-08}} | 0011 | d0011 | ||
{{ISOyear|debug=1|0011-08-18}} | 0011 | d0011 | ||
{{ISOyear|debug=1|0011-08-18 08:15}} | 0011 | d0011 | ||
{{ISOyear|debug=1|0011-08-18 08:15:30}} | 0011 | d0011 | ||
{{ISOyear|debug=1|0011-08-18 08:15:30Z}} | 0011 | d0011 | ||
{{ISOyear|debug=1|9}} | 0009 | b9 | ||
{{ISOyear|debug=1|9-08}} | 0009 | g0009 | ||
{{ISOyear|debug=1|9-08-18}} | 0009 | g0009 | ||
{{ISOyear|debug=1|9-08-18 08:15}} | 0009 | g0009 | ||
{{ISOyear|debug=1|9-08-18 08:15:30}} | 0009 | g0009 | ||
{{ISOyear|debug=1|9-08-18 08:15:30Z}} | 0009 | g0009 | ||
{{ISOyear|debug=1|1}} | 0001 | b1 | ||
{{ISOyear|debug=1|1-08}} | 0001 | g0001 | ||
{{ISOyear|debug=1|1-08-18}} | 0001 | g0001 | ||
{{ISOyear|debug=1|1-08-18 08:15}} | 0001 | g0001 | ||
{{ISOyear|debug=1|1-08-18 08:15:30}} | 0001 | g0001 | ||
{{ISOyear|debug=1|1-08-18 08:15:30Z}} | 0001 | g0001 | ||
{{ISOyear|debug=1|0009}} | 0009 | b0009 | ||
{{ISOyear|debug=1|0009-08}} | 0009 | d0009 | ||
{{ISOyear|debug=1|0009-08-18}} | 0009 | d0009 | ||
{{ISOyear|debug=1|0009-08-18 08:15}} | 0009 | d0009 | ||
{{ISOyear|debug=1|0009-08-18 08:15:30}} | 0009 | d0009 | ||
{{ISOyear|debug=1|0009-08-18 08:15:30Z}} | 0009 | d0009 | ||
{{ISOyear|debug=1|0001}} | 0001 | d0001 | ||
{{ISOyear|debug=1|0001-08}} | 0001 | d0001 | ||
{{ISOyear|debug=1|0001-08-18}} | 0001 | d0001 | ||
{{ISOyear|debug=1|0001-08-18 08:15}} | 0001 | d0001 | ||
{{ISOyear|debug=1|0001-08-18 08:15:30}} | 0001 | d0001 | ||
{{ISOyear|debug=1|0001-08-18 08:15:30Z}} | 0001 | d0001 | ||
{{ISOyear|debug=1|Paris}} | c | wrong input string | ||
{{ISOyear|debug=1|[[Paris]]}} | c | wrong input string | ||
{{ISOyear|debug=1|{{Paris}}}} | c | wrong input string | ||
{{ISOyear|debug=1|1969-08-18 08:15:30}} | 1969 | d1969 | ||
{{ISOyear|debug=1|1800-08-18 08:15:30}} | 1800 | d1800 | ||
{{ISOyear|debug=1|2009-09-09}} | 2009 | d2009 | ||
{{ISOyear|debug=1|2009-09-9}} | 2009 | d2009 | ||
{{ISOyear|debug=1|2009-9-09}} | 2009 | d2009 | ||
{{ISOyear|debug=1|0909-09-09}} | 0909 | d0909 | ||
{{ISOyear|debug=1|0909-9-09}} | 0909 | d0909 | ||
{{ISOyear|debug=1|909-09-09}} | 0909 | e0909 | ||
{{ISOyear|debug=1|909-9-09}} | 0909 | ???? | ||
{{ISOyear|debug=1|0099-9-09}} | 0099 | ????? | ||
{{ISOyear|debug=1|099-9-09}} | 0099 | ????? | ||
{{ISOyear|debug=1|99-9-09}} | 0099 | ????? | ||
{{ISOyear|debug=1|099-09-09}} | 0099 | e0099 | ||
{{ISOyear|debug=1|99-09-09}} | 0099 | f0099 | ||
{{ISOyear|debug=1|+2009-09-09}} | 2009 | case not handled | ||
{{ISOyear|debug=1|-2009-09-09}} | -2009 | case not handled | ||
{{ISOyear|debug=1|2009-13-09}} | 2009 | incorrect month | ||
{{ISOyear|debug=1|2009-09-35}} | 2009 | incorrect day | ||
{{ISOyear|debug=1|2009+09+09}} | case not handled | |||
{{ISOyear|debug=1|2009/09/09}} | d2009 | |||
{{ISOyear|debug=1|2009 09 09}} | case not handled | |||
{{ISOyear|debug=1|2009-09}} | 2009 | d2009 | ||
{{ISOyear|debug=1|2009-9}} | 2009 | d2009 | ||
{{ISOyear|debug=1|2009-13}} | 2009 | incorrect month | ||
{{ISOyear|debug=1|0909-09}} | 0909 | d0909 | ||
{{ISOyear|debug=1|909-09}} | 0909 | e0909 | ||
{{ISOyear|debug=1|0100-09}} | 0100 | d0100 | ||
{{ISOyear|debug=1|0099-09}} | 0099 | d0099 | ||
{{ISOyear|debug=1|099-09}} | 0099 | e0099 | ||
{{ISOyear|debug=1|99-09}} | 0099 | f0099 | ||
{{ISOyear|debug=1|+2009-09}} | 2009 | c | case not handled | |
{{ISOyear|debug=1|-2009-09}} | -2009 | c | case not handled | |
{{ISOyear|debug=1|2009/09}} | case not handled | |||
{{ISOyear|debug=1|1555/56}} | case not handled | |||
{{ISOyear|debug=1|2009+09}} | case not handled | |||
{{ISOyear|debug=1|2009}} | 2009 | b2009 | ||
{{ISOyear|debug=1|+2009}} | 2009 | b+2009 | ||
{{ISOyear|debug=1|-2009}} | -2009 | b-2009 | ||
{{ISOyear|debug=1|0999}} | 0999 | b0999 | ||
{{ISOyear|debug=1|999}} | 0999 | b999 | ||
{{ISOyear|debug=1|0099}} | 0099 | b0099 | ||
{{ISOyear|debug=1|099}} | 0099 | b099 | ||
{{ISOyear|debug=1|99}} | 0099 | b99 | ||
{{ISOyear|debug=1|9}} | 0009 | b9 | ||
{{ISOyear|debug=1|0}} | 0000 | b0 | ||
{{ISOyear|debug=1|hello}} | c | wrong input string |