Time bucket the query range parameters.