Recurrence question regarding Februaries

"Laird Nelson" <[email protected]> Fri, 29 Apr 2005 12:56:34 -0400
Newsgroups gmane.ietf.calendar
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_001D_01C54CBA.DFBF2040
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

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

------=_NextPart_000_001D_01C54CBA.DFBF2040
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2627" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>I'm writing=20
some calendar advancement logic and want to make sure I understand the =
intent of=20
part of RFC 2445 properly.</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>Given an=20
existing arbitrary date like 4/30/2005, and an RFC 2445&nbsp;recurrence =
rule=20
whose intent is "every other day in February", would the next viable =
date (i.e.=20
the next date that conforms to the rule--the next date in the recurrence =
set)=20
be:</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>&nbsp; a.=20
February 1, 2006 (e.g. advance the calendar up to the first day of the=20
month)</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>&nbsp;=20
b.&nbsp;February 2, 2006 (e.g. do (1) but then apply the DAILY FREQ rule =
to get=20
the second day)</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2>&nbsp;&nbsp;c. February 28, 2006 (e.g. simply apply the =
BYMONTH=3D2 rule=20
part; equivalent to javaCalendar.add(Calendar.MONTH, 10); it will =
"align" the=20
day as appropriate, which, in this case, means setting it to the last =
day in=20
February 2006)</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>&nbsp; d.=20
None of the above</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2>...?</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>My apologies=20
if this is not the proper mailing list on which to ask such=20
questions.</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New" =
size=3D2>Thank you=20
for your time,</FONT></SPAN></DIV>
<DIV><SPAN class=3D281234716-29042005><FONT face=3D"Courier New"=20
size=3D2>Laird</FONT></SPAN></DIV></BODY></HTML>

------=_NextPart_000_001D_01C54CBA.DFBF2040--