|
<< Click to Display Table of Contents >> DbiTimeStampDecode |
![]() ![]()
|
C syntax
DBIResult DBIFN DbiTimeStampDecode (tsTS, pdateD, ptimeT);
Delphi syntax
function DbiTimeStampDecode (tsTS: TIMESTAMP; var dateD: DbiDate; var timeT: Time): DBIResult stdcall;
Description
DbiTimeStampDecode extracts separate encoded DBIDATE and TIME components from the TIMESTAMP.
Parameters
tsTS Type: TIMESTAMP (Input)
Specifies the encoded DATETIME timestamp.
pdateD Type: pDBIDATE (Output)
Pointer to the client variable that receives the encoded DBIDATE component.
ptimeT Type: pTIME (Output)
Pointer to the client variable that receives the encoded TIME component.
Usage
This function enables the client to interpret TIMESTAMP values obtained from DbiGetField.This function is a non-driver related service function; it works for all drivers.
Completion state
DateDecode and TimeDecode must be called in order to further decode the date and time elements into their individual components (for example, month, day, year/hours, minutes, milliseconds).
DbiResult |
Meaning |
DBIERR_OK |
The timestamp was successfully decoded. |
DBIERR_INVALIDHNDL |
pdateD or ptimeT is NULL. |
See also