[start, end], return every scheduled treatment time that lies in that interval.Input: A treatment anchored at 4:00 AM, repeating every 4 hours, queried over a 24-hour range ending at midnight.
Output: Six occurrence times: 4:00 AM, 8:00 AM, noon, 4:00 PM, 8:00 PM, and midnight.
The recurrence advances by 4 hours, and these six generated times are the ones that fall within the requested range.
Input: A treatment anchored at 9:00 AM, repeating every day, queried from 9:00 AM on one day through 9:00 AM two days later.
Output: The treatment time at 9:00 AM on each of those three days.
Each occurrence is separated from the previous one by one day, and the boundary times are included in the range.