4

I have an rruleset() that contains a base rrule:

rset = rruleset()
rset.rrule(rrule(SECONDLY, dtstart=start_date, interval=duration, until=end_date))

I would like to exclude a range of datetimes from this set.

For example: I want to exclude any occurrences of Mondays from 3:00pm to 9:00pm, is this possible with the rrule implementation or will I need to create a function to accomplish this?

martineau
  • 119,623
  • 25
  • 170
  • 301
Brett C
  • 83
  • 4
  • Looks like you could use `rset.exdate()` according to [this guide](https://www.nylas.com/blog/calendar-events-rrules/) (see section titled "Cancellations"), but since you're using a `SECONDLY` recurrence rule, it would take a lot of exclusion date rules, so it may not be practical. – martineau Mar 23 '19 at 17:11

0 Answers0