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
The symbol used to represent “AM” for this calendar.

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
Returns the identifier for the receiver.

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
Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).

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
Returns all the date components of a date, as if in a given time zone (instead of the receiving calendar’s time zone).

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Creates new calendar object with current calendar.

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
Initializes a newly-allocated NSCalendar object for the calendar specified by a given identifier.

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
Returns a copy of the calendar object.

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
Returns a date representing the absolute time calculated by adding given components to a given date.

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
Returns a date representing the absolute time calculated from given components.

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
Returns a date representing the absolute time calculated by adding given components to a given date.

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
Returns a date representing the absolute time calculated from given components.

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
The description for this timezone.

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
The index of the first weekday.

(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
The locale.

(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
The minimum number of days in the first week.

(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
The symbol used to represent “PM” for this calendar.

NSCalendarMBS.Print

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Cocoa MBS MacBase Plugin 12.3 ✅ Yes ❌ No ❌ No ✅ Yes All
Writes the calendar to debug output.

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
The time zone.

(Read and Write computed property)

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


The biggest plugin in space...