SwiftstructFoundation

struct Foundation.Calendar

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 72

  1. funcstatic _conditionallyBridgeFromObjectiveC(_: NSCalendar, result: inout Foundation.Calendar?) -> Bool
  2. funcstatic _forceBridgeFromObjectiveC(_: NSCalendar, result: inout Foundation.Calendar?) -> ()
  3. funcstatic _unconditionallyBridgeFromObjectiveC(NSCalendar?) -> Foundation.Calendar
  4. varstatic var autoupdatingCurrent: Foundation.Calendar { get }
  5. varstatic var current: Foundation.Calendar { get }
  6. fieldvar _calendar: Foundation._CalendarProtocol & AnyObject+0x0
  7. func_bridgeToObjectiveC() -> NSCalendar
  8. funccompare(_: Foundation.Date, to: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> NSComparisonResult
  9. funccomponent(_: Foundation.Calendar.Component, from: Foundation.Date) -> Int
  10. funcdate(bySettingHour: Int, minute: Int, second: Int, of: Foundation.Date, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date?
  11. funcdate(from: Foundation.DateComponents) -> Foundation.Date?
  12. funcdate(byAdding: Foundation.DateComponents, to: Foundation.Date, wrappingComponents: Bool) -> Foundation.Date?
  13. funcdate(byAdding: Foundation.Calendar.Component, value: Int, to: Foundation.Date, wrappingComponents: Bool) -> Foundation.Date?
  14. funcdate(bySetting: Foundation.Calendar.Component, value: Int, of: Foundation.Date) -> Foundation.Date?
  15. funcdate(_: Foundation.Date, matchesComponents: Foundation.DateComponents) -> Bool
  16. funcdateComponents(in: Foundation.TimeZone, from: Foundation.Date) -> Foundation.DateComponents
  17. funcdateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.DateComponents, to: Foundation.DateComponents) -> Foundation.DateComponents
  18. funcdateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.Date, to: Foundation.Date) -> Foundation.DateComponents
  19. funcdateComponents(_: Set<Foundation.Calendar.Component>, from: Foundation.Date) -> Foundation.DateComponents
  20. funcdateInterval(of: Foundation.Calendar.Component, for: Foundation.Date) -> Foundation.DateInterval?
  21. funcdateInterval(of: Foundation.Calendar.Component, start: inout Foundation.Date, interval: inout Double, for: Foundation.Date) -> Bool
  22. funcdateIntervalOfWeekend(containing: Foundation.Date, start: inout Foundation.Date, interval: inout Double) -> Bool
  23. funcdateIntervalOfWeekend(containing: Foundation.Date) -> Foundation.DateInterval?
  24. funcdates(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>
  25. funcdates(byAdding: Foundation.DateComponents, startingAt: Foundation.Date, in: Range<Foundation.Date>?, wrappingComponents: Bool) -> some Swift.Sequence<Foundation.Date>
  26. funcdates(byAdding: Foundation.Calendar.Component, value: Int, startingAt: Foundation.Date, in: Range<Foundation.Date>?, wrappingComponents: Bool) -> some Swift.Sequence<Foundation.Date>
  27. funcenumerateDates(startingAfter: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection, using: (Foundation.Date?, Bool, inout Bool) -> ()) -> ()
  28. funcisDate(_: Foundation.Date, inSameDayAs: Foundation.Date) -> Bool
  29. funcisDate(_: Foundation.Date, equalTo: Foundation.Date, toGranularity: Foundation.Calendar.Component) -> Bool
  30. funcisDateInToday(Foundation.Date) -> Bool
  31. funcisDateInTomorrow(Foundation.Date) -> Bool
  32. funcisDateInWeekend(Foundation.Date) -> Bool
  33. funcisDateInYesterday(Foundation.Date) -> Bool
  34. funcmaximumRange(of: Foundation.Calendar.Component) -> Range<Int>?
  35. funcminimumRange(of: Foundation.Calendar.Component) -> Range<Int>?
  36. funcnextDate(after: Foundation.Date, matching: Foundation.DateComponents, matchingPolicy: Foundation.Calendar.MatchingPolicy, repeatedTimePolicy: Foundation.Calendar.RepeatedTimePolicy, direction: Foundation.Calendar.SearchDirection) -> Foundation.Date?
  37. funcnextWeekend(startingAfter: Foundation.Date, start: inout Foundation.Date, interval: inout Double, direction: Foundation.Calendar.SearchDirection) -> Bool
  38. funcnextWeekend(startingAfter: Foundation.Date, direction: Foundation.Calendar.SearchDirection) -> Foundation.DateInterval?
  39. funcordinality(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Int?
  40. funcrange(of: Foundation.Calendar.Component, in: Foundation.Calendar.Component, for: Foundation.Date) -> Range<Int>?
  41. funcstartOfDay(for: Foundation.Date) -> Foundation.Date
  42. initinit(identifier: __shared Foundation.Calendar.Identifier) -> Foundation.Calendar
  43. typealiastypealias ReferenceType = __C.NSCalendar
  44. typealiastypealias _ObjectiveCType = __C.NSCalendar
  45. varvar amSymbol: String { get }
  46. varvar customMirror: Mirror { get }
  47. varvar debugDescription: String { get }
  48. varvar description: String { get }
  49. varvar eraSymbols: [String] { get }
  50. varvar firstWeekday: Int { get set }
  51. varvar identifier: Foundation.Calendar.Identifier { get }
  52. varvar locale: Foundation.Locale? { get set }
  53. varvar longEraSymbols: [String] { get }
  54. varvar minimumDaysInFirstWeek: Int { get set }
  55. varvar monthSymbols: [String] { get }
  56. varvar pmSymbol: String { get }
  57. varvar quarterSymbols: [String] { get }
  58. varvar shortMonthSymbols: [String] { get }
  59. varvar shortQuarterSymbols: [String] { get }
  60. varvar shortStandaloneMonthSymbols: [String] { get }
  61. varvar shortStandaloneQuarterSymbols: [String] { get }
  62. varvar shortStandaloneWeekdaySymbols: [String] { get }
  63. varvar shortWeekdaySymbols: [String] { get }
  64. varvar standaloneMonthSymbols: [String] { get }
  65. varvar standaloneQuarterSymbols: [String] { get }
  66. varvar standaloneWeekdaySymbols: [String] { get }
  67. varvar timeZone: Foundation.TimeZone { get set }
  68. varvar veryShortMonthSymbols: [String] { get }
  69. varvar veryShortStandaloneMonthSymbols: [String] { get }
  70. varvar veryShortStandaloneWeekdaySymbols: [String] { get }
  71. varvar veryShortWeekdaySymbols: [String] { get }
  72. varvar weekdaySymbols: [String] { get }
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
}