Product Documentation

c-treeDB API API for C

Previous Topic

Next Topic

ctdbTimeCheck

Check if the given time is valid.

Declaration

CTDBRET ctdbTimeCheck(NINT hour, NINT minute, NINT second)

Description

ctdbTimeCheck() checks to see if the given time is valid. To check if the date is valid, use ctdbDateCheck().

  • hour is the hour, and it is supposed to be in the range 0 ≤ hour ≤ 23
  • minute is the minute, and it is supposed to be in the range 0 ≤ minute ≤ 59
  • second is the second, and it is supposed to be in the range 0 ≤ minute ≤ 59

Returns

ctdbTimeCheck() returns CTDBRET_OK on success, or c-treeDB API C API error code on failure.

The possible errors associated with ctdbTimeCheck() are:

  • CTDBRET_INVHOUR (4034): Invalid hour
  • CTDBRET_INVMINUTE (4035): Invalid minute
  • CTDBRET_INVSECOND (4036): Invalid second

See also

ctdbDateCheck()

TOCIndex