--added comment

This commit is contained in:
denise 2012-04-12 17:12:43 -04:00
parent 9d4a474521
commit 62cd704d1c
1 changed files with 2 additions and 1 deletions

View File

@ -610,9 +610,10 @@ class Application_Model_ShowInstance {
$interval = $start->diff($end);
$days = $interval->format("%d");
$hours = sprintf("%02d" ,$interval->format("%h"));
if ($days > 0) {
$totalHours = $days * 24 + $hours;
//$interval object does not have milliseconds so hard code to .00
$returnStr = $totalHours . ":" . $interval->format("%I:%S") . ".00";
} else {
$returnStr = $hours . ":" . $interval->format("%I:%S") . ".00";