I am looking for a well supported (i.e. in active development or so mature that it can be a natural and uncontraversial choice) calendar library. I primarily need it to tell me when the next one or more dates are that match criteria I specify. The representative criteria I need to supply are:
Every 1-12 month(s) on the
- last Saturday
- last day
- first Saturday
- on # day
(Of course, if the library can handle these, it can likely handle a lot more that I may find useful at a later date.)
I will be using this library on OS X, so the preferred language of the library will be (in order of desirability) (a) Swift, (b) Objective-C, (c) C & (d) C++.
Apple's Cocoa classes supply two potential solutions:
The EventKit classes. The provided API can handle everything I mentioned above. The problem with it is that it requires that I interact directly with the user's calendar and this is something I want to avoid.
The NSCalendar & NSDateComponents classes. These can handle most of what I mentioned above, but I do not see a way to specify 'last', for example.
Does anyone have any suggestions?