Microformats test suite

hCard 16 - ISO date format test - RFC 3339 profile

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

Author: Glenn Jones

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

John Doe
Last updated: 200801
John Doe
Last updated: 20080121
John Doe
Last updated: 20070501T1130
John Doe
Last updated: 20070501T113015
John Doe
Last updated: 20070501T113015Z
John Doe
Last updated: 20070501t113025z
John Doe
Last updated: 2007-05-01T113025
John Doe
Last updated: 20070501T11:30:25

Not vaild date format for microformats profiles. W3C Note DateTime or RFC 3339

John Doe
Last updated: 07-05-01

Some rights reserved