src/Helper/UtilityHelper.php
public function hourRange($openingTime, $closingTime){
        $time1 = strtotime($openingTime);
        $time2 = strtotime($closingTime);
        return round(abs($time2 - $time1) / 3600,2);
    }
public function hourRange($openingTime, $closingTime){
        $time1 = strtotime($openingTime);
        $time2 = strtotime($closingTime);
        return round(abs($time2 - $time1) / 3600,2);
    }
public function hourRange ( $ openingTime , $ closingTime ) { $ time1 = strtotime ( $ openingTime ) ; $ time2 = strtotime ( $ closingTime ) ; return round ( abs ( $ time2 - $ time1 ) / 3600 , 2 ) ; }
Get difference of hours between hours

@param string $startHour
@param string $endHour
Get difference of hours between hours