Returns the range of the next weekend via two inout parameters. The weekend starts strictly after the given date.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 6.0.1+
The date at which to begin the search.
Which direction in time to search. The default value is
nil if the weekend could not be found.
.backward, then finds the previous weekend range strictly before the given date.
Note that a given entire day within a calendar is not necessarily all in a weekend or not; weekends can start in the middle of a day in some calendars and locales.