DbiTimeDecode

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiTimeDecode

Return to chapter overview

C syntax

DBIResult DBIFN DbiTimeDecode (timeT, piHour, piMin, piMilSec);

Delphi syntax

function DbiTimeDecode (timeT: Time; var iHour: Word; var iMin: Word; var iMilSec: Word): DBIResult stdcall;

Description

DbiTimeDecode decodes TIME into separate components (hours, minutes, milliseconds).

Parameters

timeT                Type: TIME                (Input)
Specifies the encoded time.

piHour                Type: pUINT16                (Output)
Pointer to the client variable that receives the decoded hours. Valid values range from 0 through 23.

piMin                Type: pUINT16                (Output)
Pointer to the client variable that receives the decoded minutes. Valid values range from 0 through 59.

piMilSec                Type: pUINT16                (Output)
Pointer to the client variable that receives the decoded milliseconds. Valid values range from 0 through 59999.

Usage

This function enables the client application to interpret time values obtained from DbiGetField. This function is a non-driver related service function; it works for all drivers.

DbiResult

Meaning

DBIERR_NONE

The time was decoded successfully.

DBIERR_INVALIDHNDL

The pointer to the decoded hours, minutes, or milliseconds is NULL.

DBIERR_INVALIDTIME

The specified encoded time is invalid.

See also

DbiTimeEncode, DbiDateDecode, DbiDateEncode, DbiTimeStampDecode, DbiTimeStampEncode