Creates a CFDate
object given an absolute time.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
CFDate Ref CFDateCreate(CFAllocator Ref allocator, CFAbsolute Time at);
Parameters
allocator
The allocator to use to allocate memory for the new object. Pass
NULL
ork
to use the current default allocator.CFAllocator Default at
The absolute time to convert to a CFDate object.
Return Value
A date object that represents the absolute time at
. The caller is responsible for releasing the CFDate
object using CFRelease
.
Discussion
CFDate
objects must always be created using absolute time. Time intervals are not supported.