Carbon


Long Date Mask Constants

Header: DateTimeUtils.h

enum {
    eraMask = 1,
    yearMask = 2,
    monthMask = 4,
    dayMask = 8,
    hourMask = 16,
    minuteMask = 32,
    secondMask = 64,
    dayOfWeekMask = 128,
    dayOfYearMask = 256,
    weekOfYearMask = 512,
    pmMask = 1024,
    dateStdMask = 127
};

Constant descriptions

eraMask

Verify the era.

yearMask

Verify the year.

monthMask

Verify the month.

dayMask

Verify the day

hourMask

Verify the hour.

minuteMask

Verify the minute.

secondMask

Verify the second.

dayOfWeekMask

Verify the day of the week.

dayOfYearMask

Verify the day of the year.

weekOfYearMask

Verify the week of the year.

pmMask

Verify the evening (P.M.).

dateStdMask

Verify the era through the second.

These constants are used in the field parameter of the ToggleDate function to specify the LongDateRec fields for the ValidDate function to check.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)