You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Proposals/NNNN-calendar-improvements.md
+11-11Lines changed: 11 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,9 @@ extension Calendar {
62
62
/// - parameter repeatedTimePolicy: Determines the behavior of the search algorithm when the input produces a time that occurs twice on a particular day.
63
63
/// - parameter direction: Which direction in time to search. The default value is `.forward`, which means later in time.
@@ -75,7 +75,7 @@ And API on `Calendar` to enumerate addition with a `Sequence`:
75
75
76
76
```swift
77
77
extensionCalendar {
78
-
/// Returns a sequence of `Date`s, calculated by repeatedly adding an amount of `Calendar.Component`s to a starting `Date` and then to each subsequent result.
78
+
/// Returns a sequence of `Date`s, calculated by adding a scaled amount of `Calendar.Component`s to a starting `Date`.
79
79
/// If a range is supplied, the sequence terminates if the next result is not contained in the range. The starting point does not need to be contained in the range, but if the first result is outside of the range then the result will be an empty sequence.
80
80
///
81
81
/// - parameter startingAt: The starting point of the search.
@@ -85,13 +85,13 @@ extension Calendar {
85
85
/// - parameter wrappingComponents: If `true`, the component should be incremented and wrap around to zero/one on overflow, and should not cause higher components to be incremented. The default value is `false`.
86
86
/// - returns: A `Sequence` of `Date` values, or an empty sequence if no addition could be performed.
/// Returns a sequence of `Date`s, calculated by repeatedly adding an amount of `Calendar.Component`s to a starting `Date` and then to each subsequent result.
94
+
/// Returns a sequence of `Date`s, calculated by adding a scaled amount of `Calendar.Component`s to a starting `Date`.
95
95
/// If a range is supplied, the sequence terminates if the next result is not contained in the range. The starting point does not need to be contained in the range, but if the first result is outside of the range then the result will be an empty sequence.
96
96
///
97
97
/// - parameter startingAt: The starting point of the search.
@@ -100,9 +100,9 @@ extension Calendar {
100
100
/// - parameter wrappingComponents: If `true`, the component should be incremented and wrap around to zero/one on overflow, and should not cause higher components to be incremented. The default value is `false`.
101
101
/// - returns: A `Sequence` of `Date` values, or an empty sequence if no addition could be performed.
0 commit comments