Indicates the temporal ordering of the receiver and another given date.
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The date with which to compare the receiver.
This value must not be
nil. If the value is
nil, the behavior is undefined and may change in future versions of macOS.
This method detects sub-second differences between dates. If you want to compare dates with a less fine granularity, use
time to compare the two dates.