---
title: "timeIntervalSince(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nsdate/timeintervalsince(_:)"
---

# timeIntervalSince(_:)

Returns the interval between the receiver and another given date.

## Declaration

```swift
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

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

- [timeIntervalSinceNow](foundation/nsdate/timeintervalsincenow.md)
- [timeIntervalSinceReferenceDate](foundation/nsdate/timeintervalsincereferencedate-swift.property.md)
- [timeIntervalSince1970](foundation/nsdate/timeintervalsince1970.md)
- [timeIntervalSinceReferenceDate](foundation/nsdate/timeintervalsincereferencedate-swift.type.property.md)
- [NSTimeIntervalSince1970](foundation/nstimeintervalsince1970.md)
