|
<< Click to Display Table of Contents >> C Examples: DbiTimeDecode |
![]() ![]()
|
Decode a TIME variable into hour, minutes, and seconds.
This example uses the following input:
fDbiTimeDecode(MyTime, &Hour, &Minute, &Sec);
DBIResult fDbiTimeDecode(TIME Time, pUINT16 Hour, pUINT16 Minute, pUINT16 Seconds)
{
DBIResult rslt;
UINT16 MSeconds;
rslt = Chk(DbiTimeDecode(Time, Hour, Minute, &MSeconds));
if (rslt == DBIERR_NONE)
*Seconds = (UINT16)(MSeconds / 1000);
return rslt;
}