Recurrence and exclusions
04A recurrence set combines DTSTART with rule/date inclusions and EXDATE exclusions.
The recurrence set is the actual dates left after exclusions.
Key idea: RRULE requires FREQ; UNTIL and COUNT must not both appear in one rule.
Rules & examples
RRULE requires FREQ; UNTIL and COUNT must not both appear in one rule.
- RRULE requires FREQ; UNTIL and COUNT must not both appear in one rule.
- EXDATE exclusions take precedence over inclusions.
- Invalid calendar dates MUST be ignored and MUST NOT count toward the recurrence set.
- Nonexistent local times use the UTC offset before the gap; ambiguous local times use the first occurrence (section 3.3.5 and verified erratum 4271).
Verified erratum 4271 corrects the contradictory nonexistent-time sentence in section 3.3.10. For America/New_York, 20070311T023000 uses the pre-gap -05:00 offset: 07:30 UTC, or 03:30 EDT. An invalid date such as February 30 is ignored instead.
Sources
New to this? Start hereA quick picture + helpful background
First, agree how to read the message.
An encoding tells a reader how to interpret bytes. A format tells it how values fit together. Correctly reading a value does not make that value trustworthy.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.
Invalid dates are ignored and not counted. Nonexistent local recurrence times follow section 3.3.5, using the offset before the gap; ambiguous times use the first occurrence.
Read the updated RFC section ↗