Function

CFDateFormatterGetAbsoluteTimeFromString(_:_:_:_:)

Returns an absolute time object representing a given string.

Declaration

func CFDateFormatterGetAbsoluteTimeFromString(_ formatter: CFDateFormatter!, _ string: CFString!, _ rangep: UnsafeMutablePointer<CFRange>!, _ atp: UnsafeMutablePointer<CFAbsoluteTime>!) -> Bool

Parameters

formatter

The date formatter object to use to parse string.

string

The string that contains the time to be parsed.

rangep

Reference to the range within the string specifying the substring to be parsed. If NULL, the whole string is parsed. On return, the range that defines the extent of the parse (may be less than the given range).

atp

An absolute time value, returned by reference, that represents string. Ownership follows the The Get Rule.

Return Value

true if the string was parsed successfully, otherwise false.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software