---
title: "CFDateGetTimeIntervalSinceDate(_:_:)"
framework: corefoundation
role: symbol
role_heading: Function
path: "corefoundation/cfdategettimeintervalsincedate(_:_:)"
---

# CFDateGetTimeIntervalSinceDate(_:_:)

Returns the number of elapsed seconds between the given CFDate objects.

## Declaration

```swift
func CFDateGetTimeIntervalSinceDate(_ theDate: CFDate!, _ otherDate: CFDate!) -> CFTimeInterval
```

## Parameters

- `theDate`: The date to compare to otherDate.
- `otherDate`: The date to compare to theDate.

## Return Value

Return Value The number of elapsed seconds between theDate and otherDate. The result is positive if theDate is later than otherDate.

## See Also

### CFDate Miscellaneous Functions

- [CFDateCompare(_:_:_:)](corefoundation/cfdatecompare(_:_:_:).md)
- [CFDateCreate(_:_:)](corefoundation/cfdatecreate(_:_:).md)
- [CFDateGetAbsoluteTime(_:)](corefoundation/cfdategetabsolutetime(_:).md)
- [CFDateGetTypeID()](corefoundation/cfdategettypeid().md)
