Algorithm: how to check intersections of recurring events definitions?

Posted by glaz666 on Stack Overflow See other posts from Stack Overflow or by glaz666
Published on 2010-05-25T11:25:38Z Indexed on 2010/05/25 11:31 UTC
Read the original article Hit count: 313

Filed under:
|
|

The question comes from MS Outlook calendar behavior.

Imagine I have two recurring events (starting from today): "each second Monday" and "every odd date". Is there any way to check intersections and/or find the first intersecting date algorithmically without brute-forcing over each date?

Definitions can be made in CRON's notations or ICal notation. I think it doesn't matter.

Are there any solutions for this in Gregorian calendar?

© Stack Overflow or respective owner

Related posts about algorithm

Related posts about dates