![]() |
smallDateBit |
Header: DateTimeUtils.h |
enum { smallDateBit = 31, togChar12HourBit = 30, togCharZCycleBit = 29, togDelta12HourBit = 28, genCdevRangeBit = 27, validDateFields = -1, maxDateField = 10 };
If this bit is set, the valid date and time are restricted to the range of the system global variable Timethat is, between midnight on January 1, 1904 and 6:28:15 A.M. on February 6, 2040.
If this bit is set, modifying the hour by character is limited to the 12-hour range defined by togCharZCycleBit, mapped to the appropriate half of the 24-hour range, as determined by the pm field. This bit works with system software version 6.0.4 and later.
If this bit is set, the input character is treated as if it modifies an hour whose value is in the range 011. If this bit is not set, the input character is treated as if it modifies an hour whose value is in the range 12, 111. This bit works with system software version 6.0.4 and later.
If this bit is set, modifying the hour up or down is limited to a 12-hour range. For example, increasing by one from 11 produces 0, increasing by one from 23 produces 12, and so on. This bit works with system software version 6.0.4 and later.
If this bit is set in addition to smallDateBit, then the date range is restricted to that used by the General Controls control panelJanuary 1, 1920 to December 31, 2019 in the Gregorian calendar (the routine works correctly for other calendars as well). For dates outside this range but within the range specified by the system global variable TimeJanuary 1, 1904 to February 6, 2040 in the Gregorian calendarToggleDate adds or subtracts 100 years to bring the dates into the range of the General Controls control panel if these bits are set. The ToggleDate function returns an error if the smallDateBit is set and the date is outside the range specified by the system global variable Time. This bit works with system software version 6.0.4 and later.
© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)