[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Recurrence question regarding Februaries



I'm writing some calendar advancement logic and want to make sure I understand the intent of part of RFC 2445 properly.
 
Given an existing arbitrary date like 4/30/2005, and an RFC 2445 recurrence rule whose intent is "every other day in February", would the next viable date (i.e. the next date that conforms to the rule--the next date in the recurrence set) be:
 
  a. February 1, 2006 (e.g. advance the calendar up to the first day of the month)
  b. February 2, 2006 (e.g. do (1) but then apply the DAILY FREQ rule to get the second day)
  c. February 28, 2006 (e.g. simply apply the BYMONTH=2 rule part; equivalent to javaCalendar.add(Calendar.MONTH, 10); it will "align" the day as appropriate, which, in this case, means setting it to the last day in February 2006)
  d. None of the above
 
...?
 
My apologies if this is not the proper mailing list on which to ask such questions.
 
Thank you for your time,
Laird