public function hourIndex($datetime, $hours)
    {
        $searchedHour = date('G', $datetime->getTimestamp());

        return $this->getIndex($searchedHour, $hours);
    }
public function hourIndex($datetime, $hours)
    {
        $searchedHour = date('G', $datetime->getTimestamp());

        return $this->getIndex($searchedHour, $hours);
    }
public function hourIndex ( $ datetime , $ hours ) { $ searchedHour = date ( 'G' , $ datetime -> getTimestamp ( ) ) ; return $ this -> getIndex ( $ searchedHour , $ hours ) ; }
Returns the index values array for a given Datetime

@param $datetime DateTime object
@param $hours Array
Returns the index values array for a given Datetime