Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar's locale.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The date for which to perform the calculation.
YES if the given date is within a weekend period, otherwise
If the date does fall within a weekend, you can use the
range method to determine the start date of that weekend period. Otherwise, you can use the
next method to determine the start date of the next or previous weekend.