|
<< Click to Display Table of Contents >> DbiTimeEncode |
![]() ![]()
|
C syntax
DBIResult DBIFN DbiTimeEncode (iHour, iMin, iMilSec, ptimeT);
Delphi syntax
function DbiTimeEncode (iHour: Word; iMin: Word; iMilSec: Word; var timeT: Time): DBIResult stdcall;
Description
DbiTimeEncode encodes separate time components into TIME for use by DbiPutField and other functions.
Parameters
iHour Type: UINT16 (Input)
Specifies hours. Valid values range from 0 through 23.
iMin Type: UINT16 (Input)
Specifies minutes. Valid values range from 0 through 59.
iMilSec Type: UINT16 (Input)
Specifies milliseconds. Valid values range from 0 through 59999.
ptimeT Type: pTIME (Output)
Pointer to the client variable that receives the encoded time.
Usage
This function enables the client application to construct a time value for use by DbiPutField. This function is a non-driver related service function; it works for all drivers.
DbiResult |
Meaning |
DBIERR_NONE |
The time was successfully encoded. |
DBIERR_INVALIDHNDL |
ptimeT is NULL. |
DBIERR_INVALIDTIME |
Ranges of hour, minute, and millisecond parameters are invalid. |
See also
DbiDateEncode, DbiDateDecode, DbiTimeStampDecode, DbiTimeStampEncode, DbiPutField