20.1.1 MS-DOS Times
MS-DOS records file dates and times as packed 16-bit values. An MS-DOS date has the following format:
0–4 |
Day of the month (1–31) |
5–8 |
Month (1 = January, 2 = February, etc.) |
9–15 |
Year offset from 1980 (add 1980 to get actual year) |
An MS-DOS time has the following format:
0–4 |
Second divided by 2 |
5–10 |
Minute (0–59) |
11–15 |
Hour (0–23 on a 24-hour clock) |
The DosDateTimeToFileTime function converts MS-DOS date and time values into FILETIME values. The FileTimeToDosDateTime function converts FILETIME values into MS-DOS date and time values.