[uf-discuss] hAtom in Wordpress or Php: Iso 8601 timestamp

Scott Reynen scott at randomchaos.com
Sat Mar 8 09:42:28 PST 2008


On Mar 8, 2008, at 2:11 AM, Lorenzo De Tomasi wrote:

> But now the question is which is the correct ISO 8601 timestamp?
> 2008-01-29T11:42:00+01:00 or 2008-01-29T11:42:00+0100?

Both are valid per ISO 8601.  Here's the full spec:

http://isotc.iso.org/livelink/livelink/4021199/ISO_8601_2004_E.zip?func=doc.Fetch&nodeid=4021199

 From section 4.2.5.1:

"Basic format: ±hhmm Example: +0100
±hh  +01
Extended format: ±hh:mm Example: +01:00"

While both are valid, hh:mm is probably more friendly to screen  
readers.  If you're running PHP 5, you can get the full ISO 8601  
representation with the_time( 'c' ).

Peace,
Scott




More information about the microformats-discuss mailing list