Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCalendarMBS class.
NSCalendarMBS.AMSymbol as string
Function:
The symbol used to represent “AM” for this calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.calendarIdentifier as string
Function:
Returns the identifier for the receiver.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.componentsInTimeZone(timezone as NSTimeZoneMBS, date as Date) as NSDateComponentsMBS
Function:
Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).
Notes:
timezone: The time zone to use when returning the components. This value overrides the time zone of the receiving NSCalendar.
date: The date for which to perform the calculation.
Returns an NSDateComponents object containing all the components from the given date, calculated using the given time zone.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
timezone: The time zone to use when returning the components. This value overrides the time zone of the receiving NSCalendar.
date: The date for which to perform the calculation.
Returns an NSDateComponents object containing all the components from the given date, calculated using the given time zone.
See also:
NSCalendarMBS.componentsInTimeZone(timezone as NSTimeZoneMBS, date as DateTime) as NSDateComponentsMBS
Function:
Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).
Notes:
timezone: The time zone to use when returning the components. This value overrides the time zone of the receiving NSCalendar.
date: The date for which to perform the calculation.
Returns an NSDateComponents object containing all the components from the given date, calculated using the given time zone.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes:
timezone: The time zone to use when returning the components. This value overrides the time zone of the receiving NSCalendar.
date: The date for which to perform the calculation.
Returns an NSDateComponents object containing all the components from the given date, calculated using the given time zone.
See also:
NSCalendarMBS.Constructor
Function:
Creates new calendar object with current calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSCalendarMBS.Constructor(identifier as string)
Function:
Initializes a newly-allocated NSCalendar object for the calendar specified by a given identifier.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
See also:
NSCalendarMBS.copy as NSCalendarMBS
Function:
Returns a copy of the calendar object.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.dateByAddingComponents(components as NSDateComponentsMBS, toDate as Date, Options as Integer = 0) as Date
Function:
Returns a date representing the absolute time calculated by adding given components to a given date.
Notes:
components: The components to add to date.
date: The date to which comps are added.
options: Options for the calculation. See NSCalendarOptions in Apple documentation for possible values.
If you specify no options, overflow in a unit carries into the higher units (as in typical addition).
Returns a new date representing the absolute time calculated by adding to date the calendrical components specified by comps using the options specified by opts. Returns nil if date falls outside the defined range of the receiver or if the computation cannot be performed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
components: The components to add to date.
date: The date to which comps are added.
options: Options for the calculation. See NSCalendarOptions in Apple documentation for possible values.
If you specify no options, overflow in a unit carries into the higher units (as in typical addition).
Returns a new date representing the absolute time calculated by adding to date the calendrical components specified by comps using the options specified by opts. Returns nil if date falls outside the defined range of the receiver or if the computation cannot be performed.
NSCalendarMBS.dateFromComponents(components as NSDateComponentsMBS) as Date
Function:
Returns a date representing the absolute time calculated from given components.
Notes:
components: The components from which to calculate the returned date.
Returns a new Date object representing the absolute time calculated from comps. Returns nil if the receiver cannot convert the components given in comps into an NSDate object.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
Notes:
components: The components from which to calculate the returned date.
Returns a new Date object representing the absolute time calculated from comps. Returns nil if the receiver cannot convert the components given in comps into an NSDate object.
NSCalendarMBS.dateTimeByAddingComponents(components as NSDateComponentsMBS, toDate as DateTime, Options as Integer = 0) as DateTime
Function:
Returns a date representing the absolute time calculated by adding given components to a given date.
Notes:
components: The components to add to date.
date: The date to which comps are added.
options: Options for the calculation. See NSCalendarOptions in Apple documentation for possible values.
If you specify no options, overflow in a unit carries into the higher units (as in typical addition).
Returns a new date representing the absolute time calculated by adding to date the calendrical components specified by comps using the options specified by opts. Returns nil if date falls outside the defined range of the receiver or if the computation cannot be performed.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes:
components: The components to add to date.
date: The date to which comps are added.
options: Options for the calculation. See NSCalendarOptions in Apple documentation for possible values.
If you specify no options, overflow in a unit carries into the higher units (as in typical addition).
Returns a new date representing the absolute time calculated by adding to date the calendrical components specified by comps using the options specified by opts. Returns nil if date falls outside the defined range of the receiver or if the computation cannot be performed.
NSCalendarMBS.dateTimeFromComponents(components as NSDateComponentsMBS) as DateTime
Function:
Returns a date representing the absolute time calculated from given components.
Notes:
components: The components from which to calculate the returned date.
Returns a new Date object representing the absolute time calculated from comps. Returns nil if the receiver cannot convert the components given in comps into an NSDate object.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes:
components: The components from which to calculate the returned date.
Returns a new Date object representing the absolute time calculated from comps. Returns nil if the receiver cannot convert the components given in comps into an NSDate object.
NSCalendarMBS.description as string
Function:
The description for this timezone.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.firstWeekday as Integer
Function:
The index of the first weekday.
Notes: (Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: (Read and Write computed property)
NSCalendarMBS.locale as NSLocaleMBS
Function:
The locale.
Notes: (Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: (Read and Write computed property)
NSCalendarMBS.minimumDaysInFirstWeek as Integer
Function:
The minimum number of days in the first week.
Notes: (Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: (Read and Write computed property)
NSCalendarMBS.PMSymbol as string
Function:
The symbol used to represent “PM” for this calendar.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
NSCalendarMBS.Print
Function:
Writes the calendar to debug output.
Notes: This may help for debugging and you see output in console app.
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: This may help for debugging and you see output in console app.
NSCalendarMBS.timeZone as NSTimeZoneMBS
Function:
The time zone.
Notes: (Read and Write computed property)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Notes: (Read and Write computed property)
The items on this page are in the following plugins: MBS MacBase Plugin.
