src/DruidFamiliar/QueryParameters/SimpleGroupByQueryParameters.php
public function setIntervalForQueryingUsingExclusiveTimes($startDateTime, $endDateTime)
    {
        $adjustedEndDateTime = new \DateTime($endDateTime);
        $adjustedEndDateTime->add(new \DateInterval('PT1S'));

        $this->setIntervals(new Interval($startDateTime, $adjustedEndDateTime));
    }
public function setIntervalForQueryingUsingExclusiveTimes($startDateTime, $endDateTime)
    {
        $adjustedEndDateTime = new \DateTime($endDateTime);
        $adjustedEndDateTime->add(new \DateInterval('PT1S'));

        $this->setIntervals(new Interval($startDateTime, $adjustedEndDateTime));
    }
Adjusts the datetime to make the interval "exclusive" of the datetime.
e.g., given
startDateTime=2014-06-18T12:30:01Z and
endDateTime=2014-06-18T01:00:00Z
return and Interval containing
startDateTime=2014-06-18T12:30:00Z and
endDateTime=2014-06-18T01:00:01Z

@param $startDateTime
@param $endDateTime
@return void