SwiftstructFoundation
struct Foundation.Calendar
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolFoundation.ReferenceConvertible
- protocolSwift.CustomReflectable
- protocolSwift.CustomStringConvertible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
- protocolSwift._ObjectiveCBridgeable
Members 72
- func
static _conditionallyBridgeFromObjectiveC(_: NSCalendar, result: inout Foundation.Calendar?) -> Bool - func
static _forceBridgeFromObjectiveC(_: NSCalendar, result: inout Foundation.Calendar?) -> () - func
static _unconditionallyBridgeFromObjectiveC(NSCalendar?) -> Foundation.Calendar - var
static var autoupdatingCurrent: Foundation.Calendar { get } - var
static var current: Foundation.Calendar { get } - field
var _calendar: Foundation._CalendarProtocol & AnyObject+0x0 - func
_bridgeToObjectiveC() -> NSCalendar - func
compare(_: Foundation.Date, to: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> NSComparisonResult - func
component(_: Foundation.Calendar.Component, from: Foundation.Date) -> Int - func
date(bySettingHour: Int, minute: Int, second: Int, of: Foundation.Date, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date? - func
date(from: Foundation.DateComponents) -> Foundation.Date? - func
date(byAdding: Foundation.DateComponents, to: Foundation.Date, wrappingComponents: Bool) -> Foundation.Date? - func
date(byAdding: Foundation.Calendar.Component, value: Int, to: Foundation.Date, wrappingComponents: Bool) -> Foundation.Date? - func
date(bySetting: Foundation.Calendar.Component, value: Int, of: Foundation.Date) -> Foundation.Date? - func
date(_: Foundation.Date, matchesComponents: Foundation.DateComponents) -> Bool - func
dateComponents(in: Foundation.TimeZone, from: Foundation.Date) -> Foundation.DateComponents - func
dateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.DateComponents, to: Foundation.DateComponents) -> Foundation.DateComponents - func
dateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.Date, to: Foundation.Date) -> Foundation.DateComponents - func
dateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.Date) -> Foundation.DateComponents - func
dateInterval(of: Foundation.Calendar.Component, for: Foundation.Date) -> Foundation.DateInterval? - func
dateInterval(of: Foundation.Calendar.Component, start: inout Foundation.Date, interval: inout Double, for: Foundation.Date) -> Bool - func
dateIntervalOfWeekend(containing: Foundation.Date, start: inout Foundation.Date, interval: inout Double) -> Bool - func
dateIntervalOfWeekend(containing: Foundation.Date) -> Foundation.DateInterval? - func
dates(byMatching: Foundation.DateComponents, startingAt: Foundation.Date, in: Range<Foundation.Date>?, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> some Swift.Sequence<Foundation.Date> - func
dates(byAdding: Foundation.DateComponents, startingAt: Foundation.Date, in: Range<Foundation.Date>?, wrappingComponents: Bool) -> some Swift.Sequence<Foundation.Date> - func
dates(byAdding: Foundation.Calendar.Component, value: Int, startingAt: Foundation.Date, in: Range<Foundation.Date>?, wrappingComponents: Bool) -> some Swift.Sequence<Foundation.Date> - func
enumerateDates(startingAfter: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection, using: (Foundation.Date?, Bool, inout Bool) -> ()) -> () - func
isDate(_: Foundation.Date, inSameDayAs: Foundation.Date) -> Bool - func
isDate(_: Foundation.Date, equalTo: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> Bool - func
isDateInToday(Foundation.Date) -> Bool - func
isDateInTomorrow(Foundation.Date) -> Bool - func
isDateInWeekend(Foundation.Date) -> Bool - func
isDateInYesterday(Foundation.Date) -> Bool - func
maximumRange(of: Foundation.Calendar.Component) -> Range<Int>? - func
minimumRange(of: Foundation.Calendar.Component) -> Range<Int>? - func
nextDate(after: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date? - func
nextWeekend(startingAfter: Foundation.Date, start: inout Foundation.Date, interval: inout Double, direction: Foundation.Calendar.SearchDirection) -> Bool - func
nextWeekend(startingAfter: Foundation.Date, direction: Foundation.Calendar.SearchDirection) -> Foundation.DateInterval? - func
ordinality(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Int? - func
range(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Range<Int>? - func
startOfDay(for: Foundation.Date) -> Foundation.Date - init
init(identifier: __shared Foundation.Calendar.Identifier) -> Foundation.Calendar - typealias
typealias ReferenceType = __C.NSCalendar - typealias
typealias _ObjectiveCType = __C.NSCalendar - var
var amSymbol: String { get } - var
var customMirror: Mirror { get } - var
var debugDescription: String { get } - var
var description: String { get } - var
var eraSymbols: [String] { get } - var
var firstWeekday: Int { get set } - var
var identifier: Foundation.Calendar.Identifier { get } - var
var locale: Foundation.Locale? { get set } - var
var longEraSymbols: [String] { get } - var
var minimumDaysInFirstWeek: Int { get set } - var
var monthSymbols: [String] { get } - var
var pmSymbol: String { get } - var
var quarterSymbols: [String] { get } - var
var shortMonthSymbols: [String] { get } - var
var shortQuarterSymbols: [String] { get } - var
var shortStandaloneMonthSymbols: [String] { get } - var
var shortStandaloneQuarterSymbols: [String] { get } - var
var shortStandaloneWeekdaySymbols: [String] { get } - var
var shortWeekdaySymbols: [String] { get } - var
var standaloneMonthSymbols: [String] { get } - var
var standaloneQuarterSymbols: [String] { get } - var
var standaloneWeekdaySymbols: [String] { get } - var
var timeZone: Foundation.TimeZone { get set } - var
var veryShortMonthSymbols: [String] { get } - var
var veryShortStandaloneMonthSymbols: [String] { get } - var
var veryShortStandaloneWeekdaySymbols: [String] { get } - var
var veryShortWeekdaySymbols: [String] { get } - var
var weekdaySymbols: [String] { get }
Header
struct Calendar { enum Identifier { enum CodingKeys { case gregorian case buddhist case chinese case coptic case ethiopicAmeteMihret case ethiopicAmeteAlem case hebrew case iso8601 case indian case islamic case islamicCivil case japanese case persian case republicOfChina case islamicTabular case islamicUmmAlQura case bangla case gujarati case kannada case malayalam case marathi case odia case tamil case telugu case vikram case dangi case vietnamese } case gregorian case buddhist case chinese case coptic case ethiopicAmeteMihret case ethiopicAmeteAlem case hebrew case iso8601 case indian case islamic case islamicCivil case japanese case persian case republicOfChina case islamicTabular case islamicUmmAlQura case bangla case gujarati case kannada case malayalam case marathi case odia case tamil case telugu case vikram case dangi case vietnamese var debugDescription: Swift.String { get } } struct ComponentSet { let rawValue: Swift.UInt static var dayOfYear: Foundation.Calendar.ComponentSet { get } static var isRepeatedDay: Foundation.Calendar.ComponentSet { get } } enum Component { case era case year case month case day case hour case minute case second case weekday case weekdayOrdinal case quarter case weekOfMonth case weekOfYear case yearForWeekOfYear case nanosecond case calendar case timeZone case isLeapMonth case isRepeatedDay case dayOfYear var nextHigherUnit: Foundation.Calendar.Component? { get } } enum SearchDirection { case forward case backward } enum RepeatedTimePolicy { case first case last } enum MatchingPolicy { case nextTime case nextTimePreservingSmallerComponents case previousTimePreservingSmallerComponents case strict } enum Current { case fixed case current case autoupdatingCurrent } enum CodingKeys { case identifier case locale case timeZone case firstWeekday case minimumDaysInFirstWeek case current } struct DatesByMatching { struct Iterator { var iterations: Swift.Int var previouslyReturnedMatchDate: Foundation.Date? var searchingDate: Foundation.Date let range: Swift.Range<Foundation.Date>? let start: Foundation.Date let calendar: Foundation.Calendar let matchingComponents: Foundation.DateComponents let matchingPolicy: Foundation.Calendar.MatchingPolicy let repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy let direction: Foundation.Calendar.SearchDirection let searchLimit: Swift.Int var finished: Swift.Bool } let calendar: Foundation.Calendar let start: Foundation.Date let range: Swift.Range<Foundation.Date>? let matchingComponents: Foundation.DateComponents let matchingPolicy: Foundation.Calendar.MatchingPolicy let repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy let direction: Foundation.Calendar.SearchDirection } struct DatesByAdding { struct Iterator { let calendar: Foundation.Calendar let start: Foundation.Date let range: Swift.Range<Foundation.Date>? let components: Foundation.DateComponents let wrappingComponents: Swift.Bool var finished: Swift.Bool var iteration: Swift.Int } let calendar: Foundation.Calendar let start: Foundation.Date let range: Swift.Range<Foundation.Date>? let components: Foundation.DateComponents let wrappingComponents: Swift.Bool } struct SearchStepResult { var result: (Foundation.Date, Swift.Bool)? var newSearchDate: Foundation.Date } struct DatesByRecurring { struct Iterator { let start: Foundation.Date let recurrence: Foundation.Calendar.RecurrenceRule let lowerBound: Foundation.Date? let upperBound: (bound: Foundation.Date, inclusive: Swift.Bool)? let startDateNanoseconds: Swift.Double var resultsFound: Swift.Int let monthAction: Foundation.ComponentAction? let weekAction: Foundation.ComponentAction? let dayOfYearAction: Foundation.ComponentAction? let dayOfMonthAction: Foundation.ComponentAction? let weekdayAction: Foundation.ComponentAction? let hourAction: Foundation.ComponentAction? let minuteAction: Foundation.ComponentAction? let secondAction: Foundation.ComponentAction? var baseRecurrence: Foundation.Calendar.DatesByMatching.Iterator let baseRecurrenceLowerBound: Foundation.Date? var iterations: Swift.Int var finished: Swift.Bool let searchLimit: Swift.Int var iterationsSinceLastResult: Swift.Int var currentGroup: [Foundation.Date] } let start: Foundation.Date let recurrence: Foundation.Calendar.RecurrenceRule let lowerBound: Foundation.Date? let upperBound: (bound: Foundation.Date, inclusive: Swift.Bool)? } struct RecurrenceRule { enum Frequency { case minutely case hourly case daily case weekly case monthly case yearly } struct End { enum _End { case afterDate(Foundation.Date) case afterOccurrences(Swift.Int) case never } enum CodingKeys { case count case until } var _guts: Foundation.Calendar.RecurrenceRule.End._End var date: Foundation.Date? { get } var description: Swift.String { get } var occurrences: Swift.Int? { get } static var never: Foundation.Calendar.RecurrenceRule.End { get } static func afterOccurrences(_: Swift.Int) -> Foundation.Calendar.RecurrenceRule.End static func afterDate(_: Foundation.Date) -> Foundation.Calendar.RecurrenceRule.End } enum Weekday { enum CodingKeys { case weekday case n } case every(Foundation.Locale.Weekday) case nth(Swift.Int, Foundation.Locale.Weekday) } struct Month { enum CodingKeys { case month case leap } var index: Swift.Int var isLeap: Swift.Bool init(integerLiteral: Swift.Int) init(_: Swift.Int, isLeap: Swift.Bool) } enum CodingKeys { case calendar case frequency case interval case end case matchingPolicy case repeatedTimePolicy case months case daysOfTheYear case daysOfTheMonth case weeks case weekdays case hours case minutes case seconds case setPositions } var calendar: Foundation.Calendar var matchingPolicy: Foundation.Calendar.MatchingPolicy var repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy var frequency: Foundation.Calendar.RecurrenceRule.Frequency var interval: Swift.Int var end: Foundation.Calendar.RecurrenceRule.End var seconds: [Swift.Int] var minutes: [Swift.Int] var hours: [Swift.Int] var weekdays: [Foundation.Calendar.RecurrenceRule.Weekday] var daysOfTheMonth: [Swift.Int] var daysOfTheYear: [Swift.Int] var months: [Foundation.Calendar.RecurrenceRule.Month] var weeks: [Swift.Int] var setPositions: [Swift.Int] init(calendar: Foundation.Calendar, frequency: Foundation.Calendar.RecurrenceRule.Frequency, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheYear: [Swift.Int], daysOfTheMonth: [Swift.Int], weeks: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) func recurrences(of: Foundation.Date, in: Swift.ClosedRange<Foundation.Date>) -> some Swift.Sequence<Foundation.Date> func recurrences(of: Foundation.Date, in: Swift.Range<Foundation.Date>?) -> some Swift.Sequence<Foundation.Date> func recurrences(of: Foundation.Date, in: Swift.PartialRangeFrom<Foundation.Date>) -> some Swift.Sequence<Foundation.Date> func recurrences(of: Foundation.Date, in: Swift.PartialRangeUpTo<Foundation.Date>) -> some Swift.Sequence<Foundation.Date> func recurrences(of: Foundation.Date, in: Swift.PartialRangeThrough<Foundation.Date>) -> some Swift.Sequence<Foundation.Date> static func daily(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheMonth: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule static func hourly(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheYear: [Swift.Int], daysOfTheMonth: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule static func weekly(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule static func yearly(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheYear: [Swift.Int], daysOfTheMonth: [Swift.Int], weeks: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule static func monthly(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheMonth: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule static func minutely(calendar: Foundation.Calendar, interval: Swift.Int, end: Foundation.Calendar.RecurrenceRule.End, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, months: [Foundation.Calendar.RecurrenceRule.Month], daysOfTheYear: [Swift.Int], daysOfTheMonth: [Swift.Int], weekdays: [Foundation.Calendar.RecurrenceRule.Weekday], hours: [Swift.Int], minutes: [Swift.Int], seconds: [Swift.Int], setPositions: [Swift.Int]) -> Foundation.Calendar.RecurrenceRule } struct CalendarDayChangedMessage { init() static var name: __C.NSNotificationName { get } static func makeMessage(_: Foundation.Notification) -> Foundation.Calendar.CalendarDayChangedMessage? } var _calendar: any Foundation._CalendarProtocol & Swift.AnyObject init(identifier: borrowing Foundation.Calendar.Identifier) var amSymbol: Swift.String { get } var customMirror: Swift.Mirror { get } var debugDescription: Swift.String { get } var description: Swift.String { get } var eraSymbols: [Swift.String] { get } var firstWeekday: Swift.Int { get set } var identifier: Foundation.Calendar.Identifier { get } var locale: Foundation.Locale? { get set } var longEraSymbols: [Swift.String] { get } var minimumDaysInFirstWeek: Swift.Int { get set } var monthSymbols: [Swift.String] { get } var pmSymbol: Swift.String { get } var quarterSymbols: [Swift.String] { get } var shortMonthSymbols: [Swift.String] { get } var shortQuarterSymbols: [Swift.String] { get } var shortStandaloneMonthSymbols: [Swift.String] { get } var shortStandaloneQuarterSymbols: [Swift.String] { get } var shortStandaloneWeekdaySymbols: [Swift.String] { get } var shortWeekdaySymbols: [Swift.String] { get } var standaloneMonthSymbols: [Swift.String] { get } var standaloneQuarterSymbols: [Swift.String] { get } var standaloneWeekdaySymbols: [Swift.String] { get } var timeZone: Foundation.TimeZone { get set } var veryShortMonthSymbols: [Swift.String] { get } var veryShortStandaloneMonthSymbols: [Swift.String] { get } var veryShortStandaloneWeekdaySymbols: [Swift.String] { get } var veryShortWeekdaySymbols: [Swift.String] { get } var weekdaySymbols: [Swift.String] { get } func ordinality(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Swift.Int? func startOfDay(for: Foundation.Date) -> Foundation.Date func nextWeekend(startingAfter: Foundation.Date, start: inout Foundation.Date, interval: inout Swift.Double, direction: Foundation.Calendar.SearchDirection) -> Swift.Bool func nextWeekend(startingAfter: Foundation.Date, direction: Foundation.Calendar.SearchDirection) -> Foundation.DateInterval? func dateInterval(of: Foundation.Calendar.Component, for: Foundation.Date) -> Foundation.DateInterval? func dateInterval(of: Foundation.Calendar.Component, start: inout Foundation.Date, interval: inout Swift.Double, for: Foundation.Date) -> Swift.Bool func maximumRange(of: Foundation.Calendar.Component) -> Swift.Range<Swift.Int>? func minimumRange(of: Foundation.Calendar.Component) -> Swift.Range<Swift.Int>? func isDateInToday(_: Foundation.Date) -> Swift.Bool func dateComponents(in: Foundation.TimeZone, from: Foundation.Date) -> Foundation.DateComponents func dateComponents(_: Swift.Set<Foundation.Calendar.Component>, from: Foundation.DateComponents, to: Foundation.DateComponents) -> Foundation.DateComponents func dateComponents(_: Swift.Set<Foundation.Calendar.Component>, from: Foundation.Date, to: Foundation.Date) -> Foundation.DateComponents func dateComponents(_: Swift.Set<Foundation.Calendar.Component>, from: Foundation.Date) -> Foundation.DateComponents func enumerateDates(startingAfter: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection, using: (Foundation.Date?, Swift.Bool, inout Swift.Bool) -> ()) func isDateInWeekend(_: Foundation.Date) -> Swift.Bool func isDateInTomorrow(_: Foundation.Date) -> Swift.Bool func isDateInYesterday(_: Foundation.Date) -> Swift.Bool func _bridgeToObjectiveC() -> __C.NSCalendar func dateIntervalOfWeekend(containing: Foundation.Date, start: inout Foundation.Date, interval: inout Swift.Double) -> Swift.Bool func dateIntervalOfWeekend(containing: Foundation.Date) -> Foundation.DateInterval? func date(bySettingHour: Swift.Int, minute: Swift.Int, second: Swift.Int, of: Foundation.Date, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date? func date(from: Foundation.DateComponents) -> Foundation.Date? func date(byAdding: Foundation.DateComponents, to: Foundation.Date, wrappingComponents: Swift.Bool) -> Foundation.Date? func date(byAdding: Foundation.Calendar.Component, value: Swift.Int, to: Foundation.Date, wrappingComponents: Swift.Bool) -> Foundation.Date? func date(bySetting: Foundation.Calendar.Component, value: Swift.Int, of: Foundation.Date) -> Foundation.Date? func date(_: Foundation.Date, matchesComponents: Foundation.DateComponents) -> Swift.Bool func dates(byMatching: Foundation.DateComponents, startingAt: Foundation.Date, in: Swift.Range<Foundation.Date>?, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> some Swift.Sequence<Foundation.Date> func dates(byAdding: Foundation.DateComponents, startingAt: Foundation.Date, in: Swift.Range<Foundation.Date>?, wrappingComponents: Swift.Bool) -> some Swift.Sequence<Foundation.Date> func dates(byAdding: Foundation.Calendar.Component, value: Swift.Int, startingAt: Foundation.Date, in: Swift.Range<Foundation.Date>?, wrappingComponents: Swift.Bool) -> some Swift.Sequence<Foundation.Date> func range(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Swift.Range<Swift.Int>? func isDate(_: Foundation.Date, inSameDayAs: Foundation.Date) -> Swift.Bool func isDate(_: Foundation.Date, equalTo: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> Swift.Bool func compare(_: Foundation.Date, to: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> __C.NSComparisonResult func nextDate(after: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date? func component(_: Foundation.Calendar.Component, from: Foundation.Date) -> Swift.Int static var autoupdatingCurrent: Foundation.Calendar { get } static var current: Foundation.Calendar { get } static func _forceBridgeFromObjectiveC(_: __C.NSCalendar, result: inout Foundation.Calendar?) static func _conditionallyBridgeFromObjectiveC(_: __C.NSCalendar, result: inout Foundation.Calendar?) -> Swift.Bool static func _unconditionallyBridgeFromObjectiveC(_: __C.NSCalendar?) -> Foundation.Calendar }