parent
b221b362dc
commit
c4039f72bb
|
@ -4,8 +4,8 @@
|
|||
* @param Shift $shift
|
||||
*/
|
||||
function shift_length($shift) {
|
||||
$length = round(($shift['end'] - $shift['start']) / (60 * 60), 0) . ":";
|
||||
$length = floor(($shift['end'] - $shift['start']) / (60 * 60)) . ":";
|
||||
$length .= str_pad((($shift['end'] - $shift['start']) % (60 * 60)) / 60, 2, "0", STR_PAD_LEFT) . "h";
|
||||
return $length;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue