![]() |
PATH![]() |
![]() ![]() |
The ColorSync Manager defines the CMDateTime type for specifying a date and time.
The ColorSync Manager defines the CMDateTime data structure to specify a date and time in year, month, day of the month, hours, minutes, and seconds. Other ColorSync structures use the CMDateTime structure to specify information such as the creation date or calibration date for a color space profile.
The CMDateTime structure is similar to the Macintosh Toolbox structure DateTimeRec , and like it, is intended to hold date and time values only for a Gregorian calendar.
Note
The CMDateTime structure is platform independent. However, when used with Macintosh Toolbox routines such as SecondsToDate and DateToSeconds , which use seconds to designate years, the range of years that can be represented is limited.
struct CMDateTime {
unsigned short year;
unsigned short month;
unsigned short dayOfTheMonth;
unsigned short hours;
unsigned short minutes;
unsigned short seconds;
};