Returns whether a given date matches all of the given date components.
- iOS 8.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The date for which to perform the calculation.
The date components to match.
true if the given date matches the given components, otherwise
This method is useful for determining whether dates calculated by methods like
enumerate are exact, or required an adjustment due to a nonexistent time.