Index   Commented   Search   About

VariantTimeToDosDateTime

VariantTimeToDosDateTime(vtime, pwDOSDate, pwDOSTime)
double
vtime
unsigned short FAR* pwDOSDate
unsigned short FAR*
pwDOSTime

Converts the variant representation of a date and time to MS-DOS date and time values.

Parameters

  • time

The variant time to convert.

pwDOSDate

Pointer to location to store the converted MS-DOS date.

pwDOSTime

Pointer to location to store the converted MS-DOS time.

Return Value

One of the following:

Result
Meaning
True
Success
False
Failure

Comments

A variant time is stored as an 8-byte real value (double), representing a date between January 1, 1753 and December 31, 2078, inclusive. The value 2.0 represents January 1, 1900; 3.0 represents January 2, 1900, and so on. Adding 1 to the value increments the date by a day. The fractional part of the value represents the time of day. Thus, 2.5 represents noon on January 1, 1900; 3.25 is 6:00 a.m. on January 2, 1900; and so on. Negative numbers represent the dates prior to December 30, 1899.

See the Comments section of "DosDateTimeToVariantTime" for a description of the MS-DOS date and time formats.

Related Links

Software 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

Free Tech Secrets ;) Copyright © 2008 Free Tect Secrets ;) greatis just4fun network just4fun