Contents

distance(to:)

Returns the distance from this date to another date, specified as a time interval.

Declaration

func distance(to other: Date) -> TimeInterval

Parameters

  • other:

    Another date.

Return Value

The distance from this date to the other date, as a TimeInterval.

See Also

Comparing Dates