Do you want the all ’Fridays 13rd dates’ for this year? Great JAVA library implementing ical Recurrence Rules.

David Marko  25 June 2013 10:09:57
Sometimes a good library can save you a tons of code. I was trying to figure out recently how to efficiently implement mechanism, that can return a list of dates that pass certain rules.  I have to create some periodical documents for each date based on user defined rules like: "every TU and FRI  every 2 weeks for first month in quarter", or "every first and last Monday in month" etc. There are many scenarios I had to take in account. I was thinking about the code first but then I googled for a while and found the following library, that implements exactly what I need in very general way based on RFC for (ical) recurrence rules. So ... here are some links that can be useful for you for certain kind of application .

A java implementation of RFC 2445 (ical) recurrence rules:
https://code.google.com/p/google-rfc-2445/
http://google-rfc-2445.googlecode.com/svn/trunk/README.html

Well known JodaTime library is required for real usage, so here is the link:
http://joda-time.sourceforge.net/

The link to RFC that describes many examples  that are applicable for this JAVA library also:
http://google-rfc-2445.googlecode.com/svn/trunk/rfc2445.html#4.8.5.4

Image:Do you want the all ’Fridays 13rd dates’ for this year? Great JAVA library  implementing ical Recurrence Rules.
Comments
no comments availabe. Be the first!
TOPlist