This page was design to partial test the use of the RFC 3339 profile. It extends the tests on page 10. The IsEqualToISODate method normalisation and compares dates.
From: hCard test suite 1.0
Tests:
Test | Result | Comment |
---|---|---|
vcard[0].rev | IsEqualToISODate("200801") | Should find a date from text node - ISO standard date format |
vcard[1].rev | IsEqualToISODate("20080121") | Should find a date from text node - ISO extended date format |
vcard[2].rev | IsEqualToISODate("20070501T1130") | Should find a date from text node - ISO standard date format |
vcard[3].rev | IsEqualToISODate("20070501T113015") | Should find a date from text node - ISO standard date format |
vcard[4].rev | IsEqualToISODate("20070501T113015Z") | Should find a date from text node - uppercase punctuation |
vcard[5].rev | IsEqualToISODate("20070501t113025z") | Should find a date from text node - lowercase punctuation |
vcard[6].rev | IsEqualToISODate("2007-05-01T113025") | Should find a date from text node - mixed punctuation |
vcard[7].rev | IsEqualToISODate("20070501T11:30:25") | Should find a date from text node - mixed punctuation |
History:
Profile - RFC 3339. This is a subset of the ISO 8601 standard
Not vaild date format for microformats profiles. W3C Note DateTime or RFC 3339