Skip to content

Commit 7bce0c4

Browse files
committed
Fix mistake in tvOS availability
1 parent 8548538 commit 7bce0c4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/SDK/Foundation/Calendar.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
426426
/// - parameter component: A calendar component.
427427
/// - parameter date: The specified date.
428428
/// - 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, *)
430430
public func dateInterval(of component: Component, for date: Date) -> DateInterval? {
431431
var start : Date = Date(timeIntervalSinceReferenceDate: 0)
432432
var interval : TimeInterval = 0
@@ -703,7 +703,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
703703
///
704704
/// - parameter date: The date contained in the weekend.
705705
/// - 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, *)
707707
public func dateIntervalOfWeekend(containing date: Date) -> DateInterval? {
708708
var nsDate : NSDate? = nil
709709
var ti : TimeInterval = 0
@@ -748,7 +748,7 @@ public struct Calendar : CustomStringConvertible, CustomDebugStringConvertible,
748748
/// - parameter date: The date at which to begin the search.
749749
/// - parameter direction: Which direction in time to search. The default value is `.forward`.
750750
/// - 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, *)
752752
public func nextWeekend(startingAfter date: Date, direction: SearchDirection = .forward) -> DateInterval? {
753753
// The implementation actually overrides previousKeepSmaller and nextKeepSmaller with matchNext, always - but strict still trumps all.
754754
var nsDate : NSDate? = nil

0 commit comments

Comments
 (0)