Contents

timeIntervalSince(_:)

Returns the interval between the receiver and another given date.

Declaration

func timeIntervalSince(_ anotherDate: Date) -> TimeInterval

Parameters

  • anotherDate:

    The date with which to compare the receiver. You must pass a non-nil date 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.

See Also

Getting Time Intervals