finding out difference between two times
<p>I wrote the following code to determine the amount of time that employees spend on a task:</p>

<pre><code>$time1 = $row_TicketRS['OpenTime'];
$time2= $row_TicketRS['CloseTime'];

$t1=strtotime($time1); 
$t2=strtotime($time2);


$end=strtotime(143000);  //143000 is reference to 14:30


//$Hours =floor((($t2 - $t1)/60)/60); 

$Hours = floor((($end- $t1)/60)/60);


echo   $Hours.' Hours '; 
</code></pre>

<p>The above code is not giving me the correct time.</p>

<p>For example, with a start time of 09:19:00 and end time of 11:01:00 it give me duration time of only 1 hour which is wrong.  What is the correct way?</p>
