This gist accompanies the blog post NSDate Manipulation Made Easy in iOS 8.
Apple quietly introduced a whole new suite of public API methods to NSCalendar
in iOS 8 titled “Calendrical Calculations”. For some reason they seemed to have forgotten to include them in the public documentation on their developer site. Fortunately, digging in to the header file in Xcode reveals lots of descriptive comments about how to use these powerful new ways of interacting with NSDate
objects.