Oracle Call Interface Programmer's Guide Release 9.0.1 Part Number A89857-01 |
|
OCI Datatype Mapping and Manipulation Functions, 32 of 135
Checks if the given date is valid.
sword OCIDateTimeCheck ( dvoid *hndl, OCIError *err, CONST OCIDateTime *date, ub4 *valid );
The OCI user session handle or environment handle. If a user session handle is passed, the conversion takes place in the session's NLS_LANGUAGE and the session's NLS_CALENDAR, otherwise the default is used.
The OCI error handle. If there is an error, it is recorded in err
and this function returns OCI_ERROR. Obtain diagnostic information by calling OCIErrorGet()
.
The date to be checked.
Returns zero for a valid date, otherwise it returns the ORed combination of all the error bits specified below:
So, for example, if the date passed in was 2/0/1990 25:61:10 in (month/day/year hours:minutes:seconds format), the error returned would be:
OCI_DT_INVALID_DAY | OCI_DT_DAY_BELOW_VALID | OCI_DT_INVALID_HOUR | OCI_DT_INVALID_MINUTE.
OCI_SUCCESS,
OCI_INVALID_HANDLE, if err is a null pointer,
OCI_ERROR, if date
or valid
is a null pointer.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|