This test is based on HTML5 datetime value examples listed in HTML Living Standard 4.6.11 The time element description*. An HTML5 user agent should parse all of the following (time elements content and datetime attirbute values) as valid datetime values.
*Except fractional parts of second are trimed to 3 digits (from original 5 digits), so that those conform to the definition "One, two, or three digits" in the spec.
A valid month string
and
A valid date string
and
A valid yearless date string
and
A valid time string
and
and
and
A valid local date and time string
and
and
and
and
and
and
A valid time-zone offset string
and
and
and
and
and
A valid global date and time string
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
and
A valid week string
and
Four or more digits, at least one of which is not U+0030 DIGIT ZERO (0)