DosDateTimeToVariantTime

DosDateTimeToVariantTime(wDOSDate, wDOSTime, pvtime)
unsigned short
wDOSDate
unsigned short
wDOSTime
double FAR*
pvtime

Converts the MS-DOS representation of time to the date and time representation stored in variant.

Parameters

wDOSDate

The MS-DOS date to convert.

wDOSTime

The MS-DOS time to convert.

pvtime

Pointer to the location to store the converted time.

Return Value

One of the following:

Result
Meaning
True
Success
False
Failure

Comments

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 (1pics/OLE00090001.gif31)
5-8
Month (1 = January, 2 = February, and so on)
9-15
Year offset from 1980 (add 1980 to get actual year)

An MS-DOS time has the following format:

Bits
Contents
0-4
Second divided by 2
5-10
Minute (0pics/OLE00090001.gif59)
11-15
Hour (0pics/OLE00090001.gif23 on a 24-hour clock)

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples