I have the following PHP code:
$time=\'080000\'; $duration=0; for ($x = 1; $x <= 24; $x++) { $durationHrs = (int)($duration/60); $durationMins = (int)(