format('U.u'); unset($time); return $stamp; } public static function stamp2iso($stamp) { $intStamp = floor($stamp); $intMilli = round(($stamp-$intStamp)*1000); $isoDate = new DateTime(date($intStamp)); $isoDate.setTime(date('H',$intStam), date('i',$intStam), date('s',$intStam), $intMilli); error_log($isoDate); return $isoDate; } } ?>