Function

CFAbsoluteTimeAddGregorianUnits

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

Declaration

CFAbsoluteTime CFAbsoluteTimeAddGregorianUnits(CFAbsoluteTime at, CFTimeZoneRef tz, CFGregorianUnits units);

Parameters

at

The absolute time to which the interval is added.

tz

The time zone to use for time correction. Pass NULL for GMT.

units

The time interval to add to at.

Return Value

An absolute time value equal to the sum of at and units.

See Also

Core Foundation Time Utilities Miscellaneous Functions

CFAbsoluteTimeGetCurrent

Returns the current system absolute time.

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