Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCalendarMBS class.
NSCalendarMBS.autoupdatingCurrentCalendar as NSCalendarMBS
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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
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.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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
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).
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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
Function:
Identifier for the Buddhist calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierChinese as String
Function:
Identifier for the Chinese calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierCoptic as String
Function:
Identifier for the Coptic calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteAlem as String
Function:
Identifier for the Ethiopic (Amete Alem) calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierEthiopicAmeteMihret as String
Function:
Identifier for the Ethiopic (Amete Mihret) calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierGregorian as String
Function:
Identifier for the Gregorian calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierHebrew as String
Function:
Identifier for the Hebrew calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIndian as String
Function:
Identifier for the Indian calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamic as String
Function:
Identifier for the Islamic calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicCivil as String
Function:
Identifier for the Islamic civil calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicTabular as String
Function:
Identifier for a tabular Islamic calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierIslamicUmmAlQura as String
Function:
Identifier for the Islamic Umm al-Qura calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierISO8601 as String
Function:
Identifier for the ISO8601 calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierJapanese as String
Function:
Identifier for the Japanese calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierPersian as String
Function:
Identifier for the Persian calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.NSCalendarIdentifierRepublicOfChina as String
Function:
Identifier for the Republic of China calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
shared method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The items on this page are in the following plugins: MBS MacBase Plugin.
