- iOS 2.0+
- macOS 10.0+
- tvOS 9.0+
- watchOS 2.0+
Core Foundation measures time in units of seconds. The base data type is the
CFTime, which measures the difference in seconds between two times. Fixed times, or dates, are defined by the
CFAbsolute data type, which measures the time interval between a particular date and the absolute reference date of Jan 1 2001 00:00:00 GMT.
CFGregorian structure represents absolute times in terms of the Gregorian calendar. Functions such as
CFAbsolute use a CFTimeZone object to obtain the local time in a particular time zone.
The CFDate opaque type wraps an absolute time into a CFType-base object, allowing you to put time objects into into collections and property lists and to be handled by other object-oriented parts of Core Foundation.