Converting a unix timestamp into ISO 8601 is easy in php version 5+. Its just date(”c”,$date) or whatever. But for all the people that don’t yet have php 5 installed, heres how I got php to convert a unix timestamp into ISO 8601:
Note:
$last_modified = filemtime(”test.php”);
$iso_8601_lastmod = date(”Y-m-d\TH:i:s+00:00″, $last_modified);