Function

CFGregorianDateIsValid

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

Declaration

Boolean CFGregorianDateIsValid(CFGregorianDate gdate, CFOptionFlags unitFlags);

Parameters

gdate

The CFGregorianDate structure whose fields to validate.

unitFlags

A mask that specifies which Gregorian unit fields to validate. See CFGregorianUnitFlags for a list of values from which to construct the mask.

Return Value

true if the specified fields are valid, otherwise false.

See Also

Core Foundation Time Utilities Miscellaneous Functions

CFAbsoluteTimeAddGregorianUnits

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

Deprecated
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

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