Recurrence - Hourly (examples)

  1. An appointment is set every 3 hours. Five occurrences.

    RRULE:FREQ=HOURLY;COUNT=5;INTERVAL=3
    
    apt.RecurrenceInfo.Type = RecurrenceType.Hourly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 3;
    apt.RecurrenceInfo.Range = RecurrenceRange.OccurrenceCount;
    apt.RecurrenceInfo.OccurrenceCount = 5;
    
  2. An appointment is set every 5 hours. Infinite (no end date).

    RRULE:FREQ=HOURLY;INTERVAL=5
    
    apt.RecurrenceInfo.Type = RecurrenceType.Hourly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 5;
    apt.RecurrenceInfo.Range = RecurrenceRange.NoEndDate;
    
  3. An appointment is set every hour. The appointment chain duration is 24 hours.

    RRULE:FREQ=HOURLY;UNTIL=20161104T080000Z
    
    apt.RecurrenceInfo.Type = RecurrenceType.Hourly;
    apt.RecurrenceInfo.Start = apt.Start;
    apt.RecurrenceInfo.Periodicity = 1;
    apt.RecurrenceInfo.Range = RecurrenceRange.EndByDate;
    apt.RecurrenceInfo.End = apt.RecurrenceInfo.Start.AddHours(24);
    
See Also