Structure

CFGregorianDate

Structure used to represent a point in time using the Gregorian calendar.

Declaration

struct CFGregorianDate

Overview

CFGregorianDate is implemented using the smallest data type appropriate for the range of possible values. For example, there are only 12 months in the Gregorian year, so there is no need to use an integer type larger than 8 bits. To represent a time interval in Gregorian units, use a CFGregorianUnits.

The month and day units are 1-based: the index for January is 1, and the index for the first day of the month is 1.

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