How can an ICS file be written for a recurring event?

女生的网名这么多〃 提交于 2019-12-01 06:28:09

You will need to add an RRULE property to the event. For a repeating Monday event for 2016, you will need to have lines like this in your event:

DTSTART:20160104T130000Z

DTEND:20160104T140000Z

RRULE:FREQ=WEEKLY;UNTIL=20170101T000000Z

You can find the details about the RRULE syntax here: http://icalendar.org/iCalendar-RFC-5545/3-8-5-3-recurrence-rule.html

You may also find it useful to validate your icalendar feed during testing to ensure Google Calendar won't have an issue with it. Here is a useful validation tool: http://icalendar.org/validator.html

Disclaimer: I think the icalendar validator tool is the best on the internet, but I also wrote it :-)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!