Contents

CFGregorianDateIsValid(_:_:)

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

Declaration

func CFGregorianDateIsValid(_ gdate: CFGregorianDate, _ unitFlags: CFOptionFlags) -> Bool

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