Function

CFAbsoluteTimeGetCurrent

Returns the current system absolute time.

Declaration

CFAbsoluteTime CFAbsoluteTimeGetCurrent(void);

Return Value

The current absolute time.

Discussion

Absolute time is measured in seconds relative to the absolute reference date of Jan 1 2001 00:00:00 GMT. A positive value represents a date after the reference date, a negative value represents a date before it. For example, the absolute time -32940326 is equivalent to December 16th, 1999 at 17:54:34. Repeated calls to this function do not guarantee monotonically increasing results. The system time may decrease due to synchronization with external time references or due to an explicit user change of the clock.

See Also

Core Foundation Time Utilities Miscellaneous Functions

CFAbsoluteTimeAddGregorianUnits

Adds a time interval, expressed as Gregorian units, to a given absolute time.

Deprecated
CFAbsoluteTimeGetDayOfWeek

Returns an integer representing the day of the week indicated by the specified absolute time.

Deprecated
CFAbsoluteTimeGetDayOfYear

Returns an integer representing the day of the year indicated by the specified absolute time.

Deprecated
CFAbsoluteTimeGetDifferenceAsGregorianUnits

Computes the time difference between two specified absolute times and returns the result as an interval in Gregorian units.

Deprecated
CFAbsoluteTimeGetGregorianDate

Converts an absolute time value into a Gregorian date.

Deprecated
CFAbsoluteTimeGetWeekOfYear

Returns an integer representing the week of the year indicated by the specified absolute time.

Deprecated
CFGregorianDateGetAbsoluteTime

Converts a Gregorian date value into an absolute time value.

Deprecated
CFGregorianDateIsValid

Checks the specified fields of a CFGregorianDate structure for valid values.

Deprecated