Calculate Time Between Two Date by PHP

This function calculate the time difference between two dates and time and return the hours and minutes
<script type="syntaxhighlighter" class="brush: php">
<?php
/*
** Cal culate the difference between two date and time and
** the result give hours and min
*/
function getDiffTime($s_date,$e_date){
define("SECONDS_PER_HOUR", 60*60);

// $s_date = '2010-05-02';
// $s_time = '02:08:01';

// $e_date = '2010-06-03';
// $e_time = '00:06:01';

// calculate the start timestamp
//$startdatetime = strtotime($s_date . " " . $s_time);
$startdatetime = strtotime($s_date);
// calculate the end timestamp
//$enddatetime = strtotime($e_date . " " . $e_time);
$enddatetime = strtotime($e_date);
// calulate the difference in seconds
$difference = $enddatetime - $startdatetime;
// hours is the whole number of the division between seconds and SECONDS_PER_HOUR
$hoursDiff = $difference / SECONDS_PER_HOUR;
// and the minutes is the remainder
$minutesDiffRemainder = $difference % SECONDS_PER_HOUR;
// output the result

//echo $hoursDiff . "h and " . $minutesDiffRemainder . "m";

$result['hour'] = intval($hoursDiff);
$result['mini'] = intval($minutesDiffRemainder);
return $result;

}
?>
</script>