src/Transformatika/Utility/Fn.php
public static function timeToInt($time)
    {
        $timeHour = substr($time, 0, 2);
        if (substr($time, 0, 1) == '0') {
            $timeHour = substr($time, 1, 1);
        }
        $timeMin     = substr($time, 3, 5);
        $timeHourMin = ((int)$timeHour * 60) + ((int)$timeMin / 1);
        $values      = $timeHourMin;

        return $values;
    }
public static function timeToInt($time)
    {
        $timeHour = substr($time, 0, 2);
        if (substr($time, 0, 1) == '0') {
            $timeHour = substr($time, 1, 1);
        }
        $timeMin     = substr($time, 3, 5);
        $timeHourMin = ((int)$timeHour * 60) + ((int)$timeMin / 1);
        $values      = $timeHourMin;

        return $values;
    }
public static function timeToInt ( $ time ) { $ timeHour = substr ( $ time , 0 , 2 ) ; if ( substr ( $ time , 0 , 1 ) == '0' ) { $ timeHour = substr ( $ time , 1 , 1 ) ; } $ timeMin = substr ( $ time , 3 , 5 ) ; $ timeHourMin = ( ( int ) $ timeHour * 60 ) + ( ( int ) $ timeMin / 1 ) ; $ values = $ timeHourMin ; return $ values ; }
Time to Integer
@param  Time
@return Integer
Time to Integer