Platforms to show: All Mac Windows Linux Cross-Platform

Back to NSCalendarMBS class.

NSCalendarMBS.autoupdatingCurrentCalendar as NSCalendarMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns the current logical calendar for the current user.
Notes:
Settings you get from this calendar do change as the user's settings change (contrast with currentCalendar).

Note that if you cache values based on the calendar or related information those caches will of course not be automatically updated by the updating of the calendar object.

Available in Mac OS X v10.5 and later.
NSCalendarMBS.calendarWithIdentifier(identifier as String) as NSCalendarMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Creates a new calendar specified by a given identifier.
Notes:
identifier: The identifier for the new calendar. For valid identifiers, see Calendar Identifiers.

Returns he initialized calendar, or nil if the identifier is unknown (if, for example, it is either an unrecognized string or the calendar is not supported by the current version of the operating system).

The returned calendar defaults to the current locale and default time zone.
NSCalendarMBS.currentCalendar as NSCalendarMBS
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Returns the logical calendar for the current user.
Notes: The returned calendar is formed from the settings for the current user's chosen system locale overlaid with any custom settings the user has specified in System Preferences. Settings you get from this calendar do not change as System Preferences are changed, so that your operations are consistent (contrast with autoupdatingCurrentCalendar).

Some examples using this method:

NSCalendarMBS.NSCalendarIdentifierBuddhist as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Buddhist calendar.
NSCalendarMBS.NSCalendarIdentifierChinese as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Chinese calendar.
NSCalendarMBS.NSCalendarIdentifierCoptic as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Coptic calendar.
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteAlem as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Ethiopic (Amete Alem) calendar.
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteMihret as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Ethiopic (Amete Mihret) calendar.
NSCalendarMBS.NSCalendarIdentifierGregorian as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Gregorian calendar.
NSCalendarMBS.NSCalendarIdentifierHebrew as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Hebrew calendar.
NSCalendarMBS.NSCalendarIdentifierIndian as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Indian calendar.
NSCalendarMBS.NSCalendarIdentifierIslamic as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Islamic calendar.
NSCalendarMBS.NSCalendarIdentifierIslamicCivil as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Islamic civil calendar.
NSCalendarMBS.NSCalendarIdentifierIslamicTabular as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for a tabular Islamic calendar.
NSCalendarMBS.NSCalendarIdentifierIslamicUmmAlQura as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Islamic Umm al-Qura calendar.
NSCalendarMBS.NSCalendarIdentifierISO8601 as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the ISO8601 calendar.
NSCalendarMBS.NSCalendarIdentifierJapanese as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Japanese calendar.
NSCalendarMBS.NSCalendarIdentifierPersian as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Persian calendar.
NSCalendarMBS.NSCalendarIdentifierRepublicOfChina as String
Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method Cocoa MBS MacBase Plugin 22.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Function: Identifier for the Republic of China calendar.

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


💬 Ask a question or report a problem
The biggest plugin in space...


Start Chat