t)) { $value[] = (string)$is->t; } else { foreach ($is->r as $run) { $value[] = (string)$run->t; } } return implode(' ', $value); } // converts an Excel date field (a number) to a unix timestamp (granularity: seconds) public static function toUnixTimeStamp($excelDateTime) { if (! is_numeric($excelDateTime)) { return $excelDateTime; } $d = floor($excelDateTime); // seconds since 1900 $t = $excelDateTime - $d; return ($d > 0) ? ( $d - 25569 ) * 86400 + $t * 86400 : $t * 86400; } }