Re: More recurrence rule clarifications sought

Reinhold Kainhofer <[email protected]> Thu, 5 May 2005 10:29:54 +0200
Newsgroups gmane.ietf.calendar
Organization Vienna University of Technology
Message-ID <[email protected]>
--nextPart9877189.zpbarqED08
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


Laird Nelson wrote:
> Is the following recurrence specification legal?
> =20
>   DTSTART:20050101T000000Z
>   RRULE:FREQ=3DYEARLY;BYMONTH=3D3;BYYEARDAY=3D9;BYWEEKNO=3D1;BYMONTHDAY=
=3D4

If I understand RRULE right, this rule says that the event occurs every year
on march 4, but only if if that day is the 9th day of the year and it is in
the first week of the year. Lots of contraditions there, so - apart from
the DTSTART - the event doesn't recur at all. (Note that BYYEARDAY=3D9 and=
=20
BYWEEKNO=3D1 is not a contradition! E.g. in 2005 with WKST=3DMO, January 9 =
is in=20
week no 1, because that's the first week that contains four days of 2005).

Note that all BY* rules are AND'ed together, not OR'ed. Otherwise the
example in rfc 2445 (sec. 4.3.10) would give a recurrence at all times when
the minutes are equal to 30, not just at 8:30 and 9:30


> I assume that if it is it would pick out the following dates within 2005
> (leaving aside times for now):
> =20
>   January 1 (week number 1; day pulled from DTSTART)

No, not because of week number 1, but because that's the DTSTART, and the
DTSTART is always the first recurrence.

>   January 9 (picked out by BYYEARDAY adjustment)
>   March 4 (picked out by combination of BYMONTH and BYMONTHDAY
>   adjustments)

Nope, neither, because January 9 doesn't satiisfy the BYMONTH, and March4
doesn't satisfy the BYYEARDAY and the BYWEEKNO.

Cheers,
Reinhold


=2D-=20
=2D-----------------------------------------------------------------
Reinhold Kainhofer, Vienna, Austria
email: [email protected], http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at
 * K Desktop Environment, http://www.kde.org/, KOrganizer / KPilot maintain=
er

--nextPart9877189.zpbarqED08
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCedmHTqjEwhXvPN0RAgV7AKCpklP+DuvG1CzPud4a3Nbq8CvX3ACgjbHQ
wZbdKlteZyqxVNIP8xRFOWA=
=tl8o
-----END PGP SIGNATURE-----

--nextPart9877189.zpbarqED08--