Google's RFC 2445 library takes care of these for you, and has some Joda integration as well:
http://code.google.com/p/google-rfc-2445/ Weirdly, they don't have any releases, but you can grab the code from svn and build it with no hassle. Chris [EMAIL PROTECTED] wrote: > Hi all! > > I've got two beginner questions for the more experienced joda users: > > 1. What is the easiest way to represent criterias? > Eg: "First Sunday of May" or "A day where dayOfMonth=monthOfYear" or > "Every second Wednesday" > > 2. Given the above criterias, how to create intervals out of those? > Eg I want to have the intervals of the criteria "Every second Wednesday" > in 2008, which should return 26 intervals.. > > Best regards, > Zo > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Joda-interest mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/joda-interest ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Joda-interest mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/joda-interest
