Carbon


CMDateTime

Header: CMICCProfile.h

struct CMDateTime {
    UInt16 year; 
    UInt16 month; 
    UInt16 dayOfTheMonth; 
    UInt16 hours; 
    UInt16 minutes; 
    UInt16 seconds;
};

Field descriptions

year

The year. Note that to indicate the year 1984, this field would store the integer 1984, not just 84.

month

The month of the year, where 1 represents January, and 12 represents December.

dayOfTheMonth

The day of the month, ranging from 1 to 31.

hours

The hour of the day, ranging from 0 to 23, where 0 represents midnight and 23 represents 11:00 P.M.

minutes

The minutes of the hour, ranging from 0 to 59.

seconds

The seconds of the minute, ranging from 0 to 59.

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.

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.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)