Indicates the ordering of two given dates based on their components down to a given unit granularity.
- iOS 8.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
The first date to compare.
The second date to compare.
The smallest unit that must, along with all larger units, be equal for the given dates to be considered the same. For possible values, see
NSOrdered if the dates are the same down to the given granularity, otherwise