/** * Return a set of status items for a list of instruments over a given * range of times. * * @param array $instrument_list The list of instruments to use in this query this query * this query * @param string $time_period a strtotime() parseable relative datetime object specifier datetime object specifier * datetime object specifier * * @return array * * @author Ken Auberry <*****@*****.**> */ public function get_status_for_instrument_over_range($instrument_list, $time_period = '1 day') { $current_time_obj = new DateTime(); if (strtotime($time_period)) { $current_time_obj->setTime($current_time_obj->getHours(), 0, 0); $start_time = date_modify($current_time_obj, "-{$time_period}"); } else { $start_time = $current_time_obj; } return $this->get_status_for_instrument_before_date($instrument_list, $start_time); }