init
TypeScriptstatic initIdentifier(calendarIdentifierConstant: NSCalendar_Identifier): (NSCalendar) | nullSwift declarationinit?(identifier calendarIdentifierConstant: NSCalendar.Identifier)class · SDK 27.1
class NSCalendarstatic initIdentifier(calendarIdentifierConstant: NSCalendar_Identifier): (NSCalendar) | nullSwift declarationinit?(identifier calendarIdentifierConstant: NSCalendar.Identifier)static get autoupdatingCurrent(): CalendarSwift declarationclass var autoupdatingCurrent: Calendar { get }static get current(): CalendarSwift declarationclass var current: Calendar { get }compare(date1: globalThis.Date, date2: globalThis.Date, unit: NSCalendar_Unit): ComparisonResultSwift declarationfunc compare(_ date1: Date, to date2: Date, toUnitGranularity unit: NSCalendar.Unit) -> ComparisonResultcomponent(unit: NSCalendar_Unit, date: globalThis.Date): numberSwift declarationfunc component(_ unit: NSCalendar.Unit, from date: Date) -> IntcomponentsFrom(unitFlags: NSCalendar_Unit, date: globalThis.Date): DateComponentsSwift declarationfunc components(_ unitFlags: NSCalendar.Unit, from date: Date) -> DateComponentscomponentsFromToOptions(unitFlags: NSCalendar_Unit, startingDate: globalThis.Date, resultDate: globalThis.Date, opts?: NSCalendar_Options): DateComponentsSwift declarationfunc components(_ unitFlags: NSCalendar.Unit, from startingDate: Date, to resultDate: Date, options opts: NSCalendar.Options = []) -> DateComponentscomponentsFromToOptions12596(unitFlags: NSCalendar_Unit, startingDateComp: DateComponents, resultDateComp: DateComponents, options?: NSCalendar_Options): DateComponentsSwift declarationfunc components(_ unitFlags: NSCalendar.Unit, from startingDateComp: DateComponents, to resultDateComp: DateComponents, options: NSCalendar.Options = []) -> DateComponentscomponentsInFrom(timezone: TimeZone, date: globalThis.Date): DateComponentsSwift declarationfunc components(in timezone: TimeZone, from date: Date) -> DateComponentsdateMatchesComponents(date: globalThis.Date, components: DateComponents): booleanSwift declarationfunc date(_ date: Date, matchesComponents components: DateComponents) -> BooldateByAddingToOptions(comps: DateComponents, date: globalThis.Date, opts?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc date(byAdding comps: DateComponents, to date: Date, options opts: NSCalendar.Options = []) -> Date?dateByAddingValueToOptions(unit: NSCalendar_Unit, value: number, date: globalThis.Date, options?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc date(byAdding unit: NSCalendar.Unit, value: Int, to date: Date, options: NSCalendar.Options = []) -> Date?dateBySettingHourMinuteSecondOfOptions(h: number, m: number, s: number, date: globalThis.Date, opts?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc date(bySettingHour h: Int, minute m: Int, second s: Int, of date: Date, options opts: NSCalendar.Options = []) -> Date?dateBySettingUnitValueOfOptions(unit: NSCalendar_Unit, v: number, date: globalThis.Date, opts?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc date(bySettingUnit unit: NSCalendar.Unit, value v: Int, of date: Date, options opts: NSCalendar.Options = []) -> Date?dateFrom(comps: DateComponents): (globalThis.Date) | nullSwift declarationfunc date(from comps: DateComponents) -> Date?dateEraYearMonthDayHourMinuteSecondNanosecond(eraValue: number, yearValue: number, monthValue: number, dayValue: number, hourValue: number, minuteValue: number, secondValue: number, nanosecondValue: number): (globalThis.Date) | nullSwift declarationfunc date(era eraValue: Int, year yearValue: Int, month monthValue: Int, day dayValue: Int, hour hourValue: Int, minute minuteValue: Int, second secondValue: Int, nanosecond nanosecondValue: Int) -> Date?dateEraYearForWeekOfYearWeekOfYearWeekdayHourMinuteSecondNanosecond(eraValue: number, yearValue: number, weekValue: number, weekdayValue: number, hourValue: number, minuteValue: number, secondValue: number, nanosecondValue: number): (globalThis.Date) | nullSwift declarationfunc date(era eraValue: Int, yearForWeekOfYear yearValue: Int, weekOfYear weekValue: Int, weekday weekdayValue: Int, hour hourValue: Int, minute minuteValue: Int, second secondValue: Int, nanosecond nanosecondValue: Int) -> Date?enumerateDates(start: globalThis.Date, comps: DateComponents, opts: NSCalendar_Options, block: ((arg0: (globalThis.Date) | null, arg1: boolean, arg2: NativeOut<boolean>) => void)): voidSwift declarationfunc enumerateDates(startingAfter start: Date, matching comps: DateComponents, options opts: NSCalendar.Options = [], using block: (Date?, Bool, UnsafeMutablePointer<ObjCBool>) -> Void)getEraYearMonthDayFrom(eraValuePointer: (SDKHandle) | null, yearValuePointer: (SDKHandle) | null, monthValuePointer: (SDKHandle) | null, dayValuePointer: (SDKHandle) | null, date: globalThis.Date): voidSwift declarationfunc getEra(_ eraValuePointer: UnsafeMutablePointer<Int>?, year yearValuePointer: UnsafeMutablePointer<Int>?, month monthValuePointer: UnsafeMutablePointer<Int>?, day dayValuePointer: UnsafeMutablePointer<Int>?, from date: Date)getEraYearForWeekOfYearWeekOfYearWeekdayFrom(eraValuePointer: (SDKHandle) | null, yearValuePointer: (SDKHandle) | null, weekValuePointer: (SDKHandle) | null, weekdayValuePointer: (SDKHandle) | null, date: globalThis.Date): voidSwift declarationfunc getEra(_ eraValuePointer: UnsafeMutablePointer<Int>?, yearForWeekOfYear yearValuePointer: UnsafeMutablePointer<Int>?, weekOfYear weekValuePointer: UnsafeMutablePointer<Int>?, weekday weekdayValuePointer: UnsafeMutablePointer<Int>?, from date: Date)getHour(hourValuePointer: (SDKHandle) | null, minuteValuePointer: (SDKHandle) | null, secondValuePointer: (SDKHandle) | null, nanosecondValuePointer: (SDKHandle) | null, date: globalThis.Date): voidSwift declarationfunc getHour(_ hourValuePointer: UnsafeMutablePointer<Int>?, minute minuteValuePointer: UnsafeMutablePointer<Int>?, second secondValuePointer: UnsafeMutablePointer<Int>?, nanosecond nanosecondValuePointer: UnsafeMutablePointer<Int>?, from date: Date)static initCalendarIdentifier(ident: NSCalendar_Identifier): (NSCalendar) | nullSwift declarationinit?(calendarIdentifier ident: NSCalendar.Identifier)isDateEqualToToUnitGranularity(date1: globalThis.Date, date2: globalThis.Date, unit: NSCalendar_Unit): booleanSwift declarationfunc isDate(_ date1: Date, equalTo date2: Date, toUnitGranularity unit: NSCalendar.Unit) -> BoolisDateInSameDayAs(date1: globalThis.Date, date2: globalThis.Date): booleanSwift declarationfunc isDate(_ date1: Date, inSameDayAs date2: Date) -> BoolisDateInToday(date: globalThis.Date): booleanSwift declarationfunc isDateInToday(_ date: Date) -> BoolisDateInTomorrow(date: globalThis.Date): booleanSwift declarationfunc isDateInTomorrow(_ date: Date) -> BoolisDateInWeekend(date: globalThis.Date): booleanSwift declarationfunc isDateInWeekend(_ date: Date) -> BoolisDateInYesterday(date: globalThis.Date): booleanSwift declarationfunc isDateInYesterday(_ date: Date) -> BoolmaximumRange(unit: NSCalendar_Unit): SDKHandleSwift declarationfunc maximumRange(of unit: NSCalendar.Unit) -> NSRangeminimumRange(unit: NSCalendar_Unit): SDKHandleSwift declarationfunc minimumRange(of unit: NSCalendar.Unit) -> NSRangenextDateAfterMatchingOptions(date: globalThis.Date, comps: DateComponents, options?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc nextDate(after date: Date, matching comps: DateComponents, options: NSCalendar.Options = []) -> Date?nextDateAfterMatchingHourMinuteSecondOptions(date: globalThis.Date, hourValue: number, minuteValue: number, secondValue: number, options?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc nextDate(after date: Date, matchingHour hourValue: Int, minute minuteValue: Int, second secondValue: Int, options: NSCalendar.Options = []) -> Date?nextDateAfterMatchingValueOptions(date: globalThis.Date, unit: NSCalendar_Unit, value: number, options?: NSCalendar_Options): (globalThis.Date) | nullSwift declarationfunc nextDate(after date: Date, matching unit: NSCalendar.Unit, value: Int, options: NSCalendar.Options = []) -> Date?nextWeekendStart(tip: (SDKHandle) | null, options: NSCalendar_Options, date: globalThis.Date): { $ret: boolean; $out: { "datep": (NSDate) | null } }Swift declarationfunc nextWeekendStart(_ datep: AutoreleasingUnsafeMutablePointer<NSDate?>?, interval tip: UnsafeMutablePointer<TimeInterval>?, options: NSCalendar.Options = [], after date: Date) -> BoolOmit the output parameters from the call. The result contains $ret and $out, with datep inside $out.
ordinality(smaller: NSCalendar_Unit, larger: NSCalendar_Unit, date: globalThis.Date): numberSwift declarationfunc ordinality(of smaller: NSCalendar.Unit, in larger: NSCalendar.Unit, for date: Date) -> IntrangeOfInFor(smaller: NSCalendar_Unit, larger: NSCalendar_Unit, date: globalThis.Date): SDKHandleSwift declarationfunc range(of smaller: NSCalendar.Unit, in larger: NSCalendar.Unit, for date: Date) -> NSRangerangeOfStartIntervalFor(unit: NSCalendar_Unit, tip: (SDKHandle) | null, date: globalThis.Date): { $ret: boolean; $out: { "datep": (NSDate) | null } }Swift declarationfunc range(of unit: NSCalendar.Unit, start datep: AutoreleasingUnsafeMutablePointer<NSDate?>?, interval tip: UnsafeMutablePointer<TimeInterval>?, for date: Date) -> BoolOmit the output parameters from the call. The result contains $ret and $out, with datep inside $out.
rangeOfWeekendStartIntervalContaining(tip: (SDKHandle) | null, date: globalThis.Date): { $ret: boolean; $out: { "datep": (NSDate) | null } }Swift declarationfunc range(ofWeekendStart datep: AutoreleasingUnsafeMutablePointer<NSDate?>?, interval tip: UnsafeMutablePointer<TimeInterval>?, containing date: Date) -> BoolOmit the output parameters from the call. The result contains $ret and $out, with datep inside $out.
startOfDay(date: globalThis.Date): globalThis.DateSwift declarationfunc startOfDay(for date: Date) -> Dateget amSymbol(): stringSwift declarationvar amSymbol: String { get }get pmSymbol(): stringSwift declarationvar pmSymbol: String { get }get calendarIdentifier(): NSCalendar_IdentifierSwift declarationvar calendarIdentifier: NSCalendar.Identifier { get }get eraSymbols(): Array<string>Swift declarationvar eraSymbols: [String] { get }get firstWeekday(): numberSwift declarationvar firstWeekday: Int { get set }set firstWeekday(value: number)Swift declarationvar firstWeekday: Int { get set }get locale(): (Locale) | nullSwift declarationvar locale: Locale? { get set }set locale(value: (Locale) | null)Swift declarationvar locale: Locale? { get set }get longEraSymbols(): Array<string>Swift declarationvar longEraSymbols: [String] { get }get minimumDaysInFirstWeek(): numberSwift declarationvar minimumDaysInFirstWeek: Int { get set }set minimumDaysInFirstWeek(value: number)Swift declarationvar minimumDaysInFirstWeek: Int { get set }get monthSymbols(): Array<string>Swift declarationvar monthSymbols: [String] { get }get quarterSymbols(): Array<string>Swift declarationvar quarterSymbols: [String] { get }get shortMonthSymbols(): Array<string>Swift declarationvar shortMonthSymbols: [String] { get }get shortQuarterSymbols(): Array<string>Swift declarationvar shortQuarterSymbols: [String] { get }get shortStandaloneMonthSymbols(): Array<string>Swift declarationvar shortStandaloneMonthSymbols: [String] { get }get shortStandaloneQuarterSymbols(): Array<string>Swift declarationvar shortStandaloneQuarterSymbols: [String] { get }get shortStandaloneWeekdaySymbols(): Array<string>Swift declarationvar shortStandaloneWeekdaySymbols: [String] { get }get shortWeekdaySymbols(): Array<string>Swift declarationvar shortWeekdaySymbols: [String] { get }get standaloneMonthSymbols(): Array<string>Swift declarationvar standaloneMonthSymbols: [String] { get }get standaloneQuarterSymbols(): Array<string>Swift declarationvar standaloneQuarterSymbols: [String] { get }get standaloneWeekdaySymbols(): Array<string>Swift declarationvar standaloneWeekdaySymbols: [String] { get }get timeZone(): TimeZoneSwift declarationvar timeZone: TimeZone { get set }set timeZone(value: TimeZone)Swift declarationvar timeZone: TimeZone { get set }get veryShortMonthSymbols(): Array<string>Swift declarationvar veryShortMonthSymbols: [String] { get }get veryShortStandaloneMonthSymbols(): Array<string>Swift declarationvar veryShortStandaloneMonthSymbols: [String] { get }get veryShortStandaloneWeekdaySymbols(): Array<string>Swift declarationvar veryShortStandaloneWeekdaySymbols: [String] { get }get veryShortWeekdaySymbols(): Array<string>Swift declarationvar veryShortWeekdaySymbols: [String] { get }get weekdaySymbols(): Array<string>Swift declarationvar weekdaySymbols: [String] { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSCalendar.init()
inherited init: cannot prove legal (class declares 2 custom initializers)