The question arises from the behavior of the MS Outlook calendar.
Imagine that I have two recurring events (starting today): "every second Monday" and "every odd date." Is there a way to check for intersections and / or find the first intersecting date algorithmically without roughly forcing each date?
Definitions can be made in the CRON notation or in the ICal notation. I think it doesn’t matter.
Are there any solutions for this in the Gregorian calendar?
UPD . It is also interesting to learn how MS Outlook Calendar handles these events. I mean how he finds out about it. are there two events today? I assume this is also a method of determining whether a particular date is suitable for determining a recurring event.
Formally, it can be described as two functional algorithms:
Date:intersection(Event e1, Event e2) boolean:contains(Date date, Event ev)
As for the limitations, we can move on to designating the definition of an event. You can see in Outlook (or iCal) that you can identify a less complex view of a recurring event.
date algorithm
glaz666
source share