Function

CFDateCompare

Compares two CFDate objects and returns a comparison result.

Declaration

CFComparisonResult CFDateCompare(CFDateRef theDate, CFDateRef otherDate, void *context);

Parameters

theDate

The date to compare to otherDate.

otherDate

The date to compare to theDate.

context

Unused. Pass NULL.

Return Value

A CFComparisonResult value that indicates whether theDate is equal to, less than, or greater than otherDate.

See Also

CFDate Miscellaneous Functions

CFDateCreate

Creates a CFDate object given an absolute time.

CFDateGetAbsoluteTime

Returns a CFDate object’s absolute time.

CFDateGetTimeIntervalSinceDate

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

CFDateGetTypeID

Returns the type identifier for the CFDate opaque type.