0

我想在 Outlook 中创建一个重复的 Ical 事件并且我使用了 RRule 请参见下文

RRULE;BYDAY=SU;WKST=MO:FREQ=MONTHLY;INTERVAL=1;UNTIL=20151204T110000

所以上面将在每月 4 日举办一次活动,直到 2015 年 12 月

现在在 Outlook 日历中,我不想在 10 月 4 日创建活动。

说它是从 9 月到 12 月的第 4 天重复发生的事件,但我不希望事件在 10 月举行。

如何做到这一点?我们可以在制作重复事件/我们需要在 RRULE 中添加的任何其他值时排除任何日期吗?

非常感谢您的帮助。请参阅下面的 .ics 文件

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH

BEGIN:VEVENT
DTSTART:20150904T100000
DTEND:20151204T110000
DTSTAMP:20150904T012650Z
RRULE;BYDAY=SU;WKST=MO:FREQ=MONTHLY;INTERVAL=1;UNTIL=20151204T110000 
UID:77744@dev.local
Location:AP Test
DESCRIPTION:Test,\n\nThank you for making an appointment with us. You are confirmed for the following appointment:\n\n\nDate: Friday, December 4, 2015\nTime: 10:00am to 11:00am \nWith: AP Test\n\n\n
LAST-MODIFIED:20150904T012650Z
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY:AP Test - test service
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
4

2 回答 2

0

我使用下面的 ics 代码修复了它:

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 9.0 MIMEDIR//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH

BEGIN:VEVENT
DTSTART:20150909T120000
DTSTAMP:20150909T020511Z
RRULE;BYDAY=SU;WKST=MO:FREQ=DAILY;INTERVAL=1;UNTIL=20150914T130000
EXDATE:20150912T120000, 20150913T120000
UID:77882@vchidura.dev.local
Location:Test
DESCRIPTION:Test,\n\nThank you for making an appointment with us. You are confirmed for the following appointment:\n
LAST-MODIFIED:20150909T020511Z
SEQUENCE:0
STATUS:CONFIRMED
SUMMARY: test service
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR

下面的链接解释得很好..

https://www.techfolks.net/ical-recurring-appointment-with-rrule-exdate-examples/

于 2015-09-09T06:23:36.497 回答
0

您想为要排除的每个日期使用 EXDATE 属性。见https://www.rfc-editor.org/rfc/rfc5545#section-3.8.5.1

于 2015-09-07T09:15:29.113 回答