timeIntervalSince(_:)
Returns the interval between the receiver and another given date.
Declaration
func timeIntervalSince(_ anotherDate: Date) -> TimeIntervalParameters
- anotherDate:
The date with which to compare the receiver. You must pass a non-
nildate object.
Return Value
The interval between the receiver and the anotherDate parameter. If the receiver is earlier than anotherDate, the return value is negative. If anotherDate is nil, the results are undefined.