Platforms to show: All Mac Windows Linux Cross-Platform
Back to NSCalendarMBS class.
NSCalendarMBS.AMSymbol as string
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
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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:
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)
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
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.1 | ✅ Yes | ❌ No | ❌ No | ❌ No | Desktop, Console & Web |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 20.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
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
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
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write computed property)
NSCalendarMBS.locale as NSLocaleMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write computed property)
NSCalendarMBS.minimumDaysInFirstWeek as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write computed property)
NSCalendarMBS.PMSymbol as string
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 22.5 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
This may help for debugging and you see output in console app.
NSCalendarMBS.timeZone as NSTimeZoneMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
property | Cocoa | MBS MacBase Plugin | 12.3 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
(Read and Write computed property)
The items on this page are in the following plugins: MBS MacBase Plugin.