llazzaro / django-scheduler

A calendaring app for Django.
BSD 3-Clause "New" or "Revised" License
1.29k stars 392 forks source link

Open slots? #552

Closed dwasyl closed 1 year ago

dwasyl commented 1 year ago

Just wondering if anyone has written any code to find "open slots" in a given calendar before?

Specifically looking for something that would let me find the next X minute openings in the calendar (so taking into account any hours of day boundaries and then any existing events/occurrences).

It seems like quite an involved process of just testing existing occurrences, but I was hoping someone had come up with a better way.