Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 42 of 134
Adds an interval to a datetime to produce a resulting datetime.
sword OCIDateTimeIntervalAdd ( dvoid *hndl, OCIError *err, OCIDateTime *datetime, OCIInterval *inter, OCIDateTime *outdatetime );
The user session or environment handle. If a session handle is passed, the addition takes place in the session default calendar.
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()
.
Pointer to the input datetime.
Pointer to the input interval.
Pointer to the output datetime. The output datetime will be of same type as the input datetime.
OCI_SUCCESS if the function completes successfully,
OCI_INVALID_HANDLE, if err
is a null pointer,
OCI_ERROR, if the resulting date is before Jan 1, -4713, or is after Dec 31, 9999.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|