Ical4j。 RFC5545。使用排除计算事件发生

Ical4j. RFC5545. Calculate event occurrences with exclusion

我检查ical4j library. At time I need calculate event occurrences. Useful example to calculate is here。我尝试添加排除

    VEvent event = new ContentBuilder().vevent {
        dtstart('20101113', parameters: parameters() {value('DATE')})
        dtend('20101114', parameters: parameters() {value('DATE')})
        rrule('FREQ=WEEKLY;WKST=MO;INTERVAL=3;BYDAY=MO,TU,SA')
        // I've added next row, the value is present in result occurrences
        exdate('20101221T000000Z/P1D')
    }
    def dates = event.calculateRecurrenceSet(new Period('20101101T000000/20110101T000000'))
    println dates

但是出现次数计算没有改变。谁能帮我解决一下?

你不应该包括:

/P1D

要排除一个日期,您可以使用以下方法:

exdate('20101221T000000Z')

如需排除多个日期,可用逗号分隔:

exdate('20101129T000000Z,20101221T000000Z')