| Oracle Call Interface Programmer's Guide Release 9.0.1 Part Number A89857-01 |
|
OCI Datatype Mapping and Manipulation Functions, 26 of 135
Gets the date of next day of the week, after a given date.
sword OCIDateNextDay ( OCIError *err, CONST OCIDate *date, CONST OraText *day, ub4 day_length, OCIDate *next_day );
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().
Returned date should be later than this date.
First day of week named by this is returned.
Length in bytes of string day.
First day of the week named by day later than date.
Returns the date of the first day of the week named by day that is later than date.
Get the date of the next Monday after April 18, 1996 (a Thursday).
OCIDateNextDay(&err, '18-APR-96', 'MONDAY', strlen('MONDAY'), &next_day)
OCIDateNextDay() returns '22-APR-96'.
This function returns and error if an invalid date or day is passed to it.
|
|
![]() Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|