public function ready_to_train($range) {
        $now = time();
        if ($range['time'] <= $now && $range['end'] <= $now) {
            return true;
        }
        return false;
    }
public function ready_to_train($range) {
        $now = time();
        if ($range['time'] <= $now && $range['end'] <= $now) {
            return true;
        }
        return false;
    }
public function ready_to_train ( $ range ) { $ now = time ( ) ; if ( $ range [ 'time' ] <= $ now && $ range [ 'end' ] <= $ now ) { return true ; } return false ; }
Should we use this time range for training?

@param array $range
@return bool
Should we use this time range for training?