Determines if the date has all of the specified date components.
- iOS 8.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 6.0.1+
- Mac Catalyst 13.0+Beta
true if the date matches all of the components, otherwise
It may be useful to test the return value of
next to find out if the components were obeyed or if the method had to fudge the result value due to missing time (for example, a daylight saving time transition).