Instance Method
timeIntervalSince(_:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Returns the interval between this date and another given date.
func timeIntervalSince(_ date: Date) -> TimeInterval
Parameters
dateThe date with which to compare this one.
Return Value
The interval between the receiver and the another parameter. If the receiver is earlier than anotherDate, the return value is negative. If anotherDate is nil, the results are undefined.
Discussion
See Also
timeIntervalSince1970
See Also
timeIntervalSinceNow
See Also
timeIntervalSinceReferenceDate