|
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 (1 31)
| 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 (0 59)
| 11-15
| Hour (0 23 on a 24-hour clock)
|
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|