Platforms to show: All Mac Windows Linux Cross-Platform

NSCalendarMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
The calendar class for Cocoa.

see also
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSCalendar_Class/Reference/NSCalendar.html

Calendar Units

Constant Value Description
kCFCalendarUnitDay 16 Specifies the day unit.
kCFCalendarUnitEra 2 Specifies the era unit.
kCFCalendarUnitHour 32 Specifies the hour unit.
kCFCalendarUnitMinute 64 Specifies the minute unit.
kCFCalendarUnitMonth 8 Specifies the month unit.
kCFCalendarUnitQuarter 2048 Specifies the quarter-year unit.
kCFCalendarUnitSecond 128 Specifies the second unit.
kCFCalendarUnitWeekday 256 Specifies the weekday unit.
The weekday units are the numbers 1-N (where for the Gregorian calendar N=7 and 1 is Sunday).
kCFCalendarUnitWeekdayOrdinal 512 Specifies the ordinal weekday unit. more
kCFCalendarUnitWeekOfMonth 4096 Specifies the original week of a month calendar unit.
kCFCalendarUnitWeekOfYear 8192 Specifies the original week of the year calendar unit.
kCFCalendarUnitYear 4) Specifies the year unit.
kCFCalendarUnitYearForWeekOfYear 16384 Specifies the relative year for a week within a year calendar unit.

This class has no sub classes.

Some methods using this class:

Some properties using for this class:

Some examples using this class:

Blog Entries

Release notes

  • Version 22.5
  • Version 20.1
    • Added dateFromComponents, componentsInTimeZone, dateByAddingComponents to NSCalendarMBS class.

The items on this page are in the following plugins: MBS MacBase Plugin.


NSCachedURLResponseMBS   -   NSCellMBS


The biggest plugin in space...