INT DosDateTimeToVariantTime(
unsigned short wDosDate,
unsigned short wDosTime,
double FAR* pvtime
);
Converts the MS-DOS representation of time to the date and time representation stored in a variant.
The return value obtained from the returned INT is one of the following.
Result | Meaning |
---|---|
True | Success. |
False | Failure. |
MS-DOS records file dates and times as packed 16-bit values. An MS-DOS date has the following format.
Bits | Contents |
---|---|
0–4 | Day of the month (1–31). |
5–8 | Month (1 = January, 2 = February, and so on). |
9–15 | Year offset from 1980 (add 1980 to get the actual year). |
An MS-DOS time has the following format.
Bits | Contents |
---|---|
0–4 | Second divided by 2. |
5–10 | Minute (0–59). |
11–15 | Hour (0– 23 on a 24-hour clock). |
Windows NT: Use version 3.1 and later.
Windows: Use Windows 95 and later.
Header: Declared in oleauto.h.
Import Library: Link with oleaut32.lib.