distance(to:)
Returns the distance from this date to another date, specified as a time interval.
Declaration
func distance(to other: Date) -> TimeIntervalParameters
- other:
Another date.
Return Value
The distance from this date to the other date, as a TimeInterval.