Returns a string representation of the given absolute time using the specified date formatter.


func CFDateFormatterCreateStringWithAbsoluteTime(_ allocator: CFAllocator!, _ formatter: CFDateFormatter!, _ at: CFAbsoluteTime) -> CFString!



The allocator to use to allocate memory for the new object. Pass NULL or kCFAllocatorDefault to use the current default allocator.


The date formatter object that specifies the format of the returned string.


The absolute time for which to generate a string representation.

Return Value

A new string that represents at in the specified format. Returns NULL if there was a problem creating the object. Ownership follows the The Create Rule.

See Also

Creating Strings From Data

func CFDateFormatterCreateStringWithDate(CFAllocator!, CFDateFormatter!, CFDate!) -> CFString!

Returns a string representation of the given date using the specified date formatter.

func CFDateFormatterCreateDateFormatFromTemplate(CFAllocator!, CFString!, CFOptionFlags, CFLocale!) -> CFString!

Returns a localized date format string representing the given date format components arranged appropriately for the specified locale.