[microformats-discuss] re: Microformat for timestamp of updated content

Ryan King ryan at technorati.com
Wed Aug 17 19:25:43 PDT 2005


On Aug 17, 2005, at 6:45 PM, Joe Gregorio wrote:
> RFC 3339 is, as Ted pointed out, a subset of ISO 8601.
> But I think it's important to realize how varied ISO 8601
> dates can be.
>
> The following are all valid ISO 8601 dates:
>
> 1997
> 1997-07
> 19970716
> 1997-07-16 19:20+01:00
> 1997-07-16T19:20+01:00
> 2003-W14-2
> 2003W142
> 12:30:01
> 19
>
> Care to guess what that last one represents?

I think the answer is 42.

> OTOH, RFC 3339 is strict, only the following forms are allowed
>
> \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d*)?Z
>
> or
>
> \d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\d(\.\d*)?(\+|-)\d\d:\d\d

Thanks for the analysis here, its saved a lot of RTFM-ing and  
probably not just for me.

If your analysis is correct, I'm very much in favor of using RFC 3339  
in instead of ISO 8601 (wherever appropriate).

-ryan


More information about the microformats-discuss mailing list