ID Number: Q31561
5.00 5.10 6.00 6.00a 6.00ax 7.00
MS-DOS
Summary:
In Microsoft C versions 5.0, 5.1, 6.0, 6.0a, 6.0ax, and C/C++ version
7.0, the 2-byte return values of the time and date fields returned by
_dos_findfirst() and _dos_findnext() are divided into bit ranges that
must be translated to meaningful values. This translation is usually
done by combinations of masking and right-shifts (>>).
The time field is as follows:
Bits 0BH-0FH = hours (0 through 23)
Bits 05-0AH = minutes (0 through 59)
Bits 00-04H = number of 2-second increments (0 through 29)
The date field is as follows:
Bits 09-0FH = year (relative to 1980)
Bits 05-08H = month (0 through 12)
Bits 00-04H = day of month (0 through 31)
Additional reference words: 5.00 5.10 6.00 6.00a 6.00ax 7.00