title: Compute time difference for night shift time record
body: <p>I am computing for the time difference of night shift schedule using time only</p>
  
  <p>lets say that I have this data:</p>
  
  <pre><code> $actual_in_time      = 6:45 PM        //date July 30, 2013
   $actual_out_timeout  = 7:00 AM        //date July 31, 2013
  </code></pre>
  
  <p>I have to compute for the time difference where the time in should be converted to a whole time, therefore</p>
  
  <pre><code> $actual_in_time     = //(some code to convert 6:45 PM to 7:00 PM)
   $converted_in_time  = $actual_in_time;
  </code></pre>
  
  <p>Now here is my code to that:</p>
  
  <pre><code> $actual_out_time   += 86400;
   $getInterval   = $actual_out_time - $converted_in_time;
   $hours     = round($getInterval/60/60, 2, PHP_ROUND_HALF_DOWN);
   $hours     = floor($hours);
  </code></pre>
  
  <p>I am not getting the results I wanted. How do you compute for the time difference where the basis is just the time?</p>