Function

CFDateGetTimeIntervalSinceDate

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

Declaration

CFTimeInterval CFDateGetTimeIntervalSinceDate(CFDateRef theDate, CFDateRef otherDate);

Parameters

theDate

The date to compare to otherDate.

otherDate

The date to compare to theDate.

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

Compares two CFDate objects and returns a comparison result.

CFDateCreate

Creates a CFDate object given an absolute time.

CFDateGetAbsoluteTime

Returns a CFDate object’s absolute time.

CFDateGetTypeID

Returns the type identifier for the CFDate opaque type.