in reply to storing and 'understanding' complex calendar events (including recurring events)
When I did basically the same thing some years ago, I handled recurring events by adopting a slightly-modified cron syntax, which is pretty simple for the code to figure out, although it can admittedly be a little tricky for humans to get used to. (i.e., It's generally not obvious that "3rd Monday of the month" should be represented by indicating that day of week is Monday and day of month is in the range 15-21 unless you've dealt with cron before.)
|