--added comment
This commit is contained in:
parent
9d4a474521
commit
62cd704d1c
|
@ -610,9 +610,10 @@ class Application_Model_ShowInstance {
|
||||||
$interval = $start->diff($end);
|
$interval = $start->diff($end);
|
||||||
$days = $interval->format("%d");
|
$days = $interval->format("%d");
|
||||||
$hours = sprintf("%02d" ,$interval->format("%h"));
|
$hours = sprintf("%02d" ,$interval->format("%h"));
|
||||||
|
|
||||||
if ($days > 0) {
|
if ($days > 0) {
|
||||||
$totalHours = $days * 24 + $hours;
|
$totalHours = $days * 24 + $hours;
|
||||||
|
//$interval object does not have milliseconds so hard code to .00
|
||||||
$returnStr = $totalHours . ":" . $interval->format("%I:%S") . ".00";
|
$returnStr = $totalHours . ":" . $interval->format("%I:%S") . ".00";
|
||||||
} else {
|
} else {
|
||||||
$returnStr = $hours . ":" . $interval->format("%I:%S") . ".00";
|
$returnStr = $hours . ":" . $interval->format("%I:%S") . ".00";
|
||||||
|
|
Loading…
Reference in New Issue