Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Datatype Mapping and Manipulation Functions, 34 of 134
Constructs a datetime descriptor.
sword OCIDateTimeConstruct ( dvoid *hndl, OCIError *err, OCIDateTime *datetime, sb2 year, ub1 month, ub1 day, ub1 hour, ub1 min, ub1 sec, ub4 fsec, OraText *timezone, size_t timezone_length );
The OCI user session handle or environment handle.
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 an OCIDateTime descriptor.
Year value.
Month value.
Day value.
Hour value.
Minute value.
Second value
Fractional second value.
Time zone string.
Length of the time zone string.
The type of the datetime is the type of the OCIDateTime descriptor. Only the relevant fields based on the type are used. For types with time zone, the date and time fields are assumed to be in the local time of the specified time zone.
If time zone is not specified, then session default time zone is assumed.
OCI_SUCCESS,
OCI_ERROR, if datetime is not valid.
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|