Oracle Call Interface Programmer's Guide
Release 9.0.1

Part Number A89857-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

OCI Datatype Mapping and Manipulation Functions, 36 of 135


OCIDateTimeFromArray()

Purpose

Converts an array of size OCI_DT_ARRAYLEN to an OCIDateTime descriptor.

Syntax

sword OCIDateTimeFromArray ( dvoid              *hndl,
                             OCIError           *err, 
                             CONST ub1          *inarray,
                             ub4                *len 
                             ub1                type,
                             OCIDateTime        *datetime,
                             CONST OCIInterval  *reftz,
                             ub1                fsprec );

Parameters

hndl (IN)

The OCI user session handle or environment handle.

err (IN/OUT)

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().

inarray(IN)

Array of ub1 of size OCI_DT_ARRAYLEN, containing the date.

len (IN)

Length of inarray.

type (IN)

Type of the resulting datetime. The array will be converted to the specific SQLT type.

datetime (OUT)

Pointer to an OCIDateTime descriptor.

reftz (IN)

Descriptor for OCIInterval used as a reference when converting a SQLT_TIMESTAMP_LTZ type.

fsprec (IN)

Fractional second precision of the resulting datetime.

Returns

OCI_SUCCESS,

OCI_ERROR if type is invalid.

Related Functions

OCIDateTimeFromText(),OCIDateTimeToArray().


Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback