I'm trying to detect event's colision depending of the days recurrency and the timetable.
A version more complex than this issue Algorithm to detect overlapping periods.
My case : The A event is from 8am to 1pm all the tuesday, thurday and saturday, between two dates.
The B event is from 11am to 2pm all the tuesday and thurday, between two dates(differents of event A)
Here, I putted in red the colisions between the two events.
I spent hour trying to write an algorithm to detect if there at least one colision between the two event.
By the way the date of end of an event (tend) can be undeterminate.
Is there an existing algorithm to manage this?