End After Date
Recurrence that ends on a specific date
01
Sample Code
until = datetime(2024, 6, 20, 23, 59, 59, tzinfo=UTC)
spec = RecurrenceSpec(freq=Frequency.DAILY, until=until)
start = datetime(2024, 6, 15, 9, 0, tzinfo=UTC)
dates = engine.occurrences(spec, dtstart=start, count=100)
print(f"Got {len(dates)} dates") # 6 (Jun 15-20)