@@ -426,7 +426,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
426
426
/// - parameter component: A calendar component.
427
427
/// - parameter date: The specified date.
428
428
/// - returns: A new `DateInterval` if the starting time and duration of a component could be calculated, otherwise `nil`.
429
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 12 . 0 , watchOS 3 . 0 , * )
429
+ @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
430
430
public func dateInterval( of component: Component , for date: Date ) -> DateInterval ? {
431
431
var start : Date = Date ( timeIntervalSinceReferenceDate: 0 )
432
432
var interval : TimeInterval = 0
@@ -703,7 +703,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
703
703
///
704
704
/// - parameter date: The date contained in the weekend.
705
705
/// - returns: A `DateInterval`, or nil if the date is not in a weekend.
706
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 12 . 0 , watchOS 3 . 0 , * )
706
+ @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
707
707
public func dateIntervalOfWeekend( containing date: Date ) -> DateInterval ? {
708
708
var nsDate : NSDate ? = nil
709
709
var ti : TimeInterval = 0
@@ -748,7 +748,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
748
748
/// - parameter date: The date at which to begin the search.
749
749
/// - parameter direction: Which direction in time to search. The default value is `.forward`.
750
750
/// - returns: A `DateInterval`, or nil if weekends do not exist in the specific calendar or locale.
751
- @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 12 . 0 , watchOS 3 . 0 , * )
751
+ @available ( OSX 10 . 12 , iOS 10 . 0 , tvOS 10 . 0 , watchOS 3 . 0 , * )
752
752
public func nextWeekend( startingAfter date: Date , direction: SearchDirection = . forward) -> DateInterval ? {
753
753
// The implementation actually overrides previousKeepSmaller and nextKeepSmaller with matchNext, always - but strict still trumps all.
754
754
var nsDate : NSDate ? = nil
0 commit comments