开发者

How to get list of occurrence dates from iCalendar RRULE

开发者 https://www.devze.com 2023-03-21 00:15 出处:网络
I have the iCalendar file with RRULE for occurre开发者_StackOverflow社区nces. How to get the list of dates on which the event will be occurring as per given start date and RRULE in the iCal file.

I have the iCalendar file with RRULE for occurre开发者_StackOverflow社区nces. How to get the list of dates on which the event will be occurring as per given start date and RRULE in the iCal file.

In Java, I want to write a method which should take start date and RRULE and return me the list of occurrence dates. Please help with simple solution or directions.


There is a Java library specifically for parsing RRULEs called google-rfc-2445.

The following link contains an example using the library where you supply a start date along with an RRULE and it prints out the dates.

http://google-rfc-2445.googlecode.com/svn/trunk/README.html


I do not have a chance to read README because of 404 - The requested URL /svn/trunk/README.html was not found on this server. If you have an example to show, please share it. I've found another solution lib-recur. lib-recur is shared via maven repository.

0

精彩评论

暂无评论...
验证码 换一张
取 消