NSCalendar is an Apple MacOS and iOS class to deal with calendrical computation.
a “toll-free bridged” counterpart to CFCalendar, an Objective-C component that provides information about the calendar and support for computations such as determining the range of a given calendrical unit and adding units to a given absolute time.