DB2®ResultSet.GetDB2TimeStampOffset Method

Creates an instance of a DB2TimeStampOffset object from the timestamp with timezone column data.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function GetDB2TimeStampOffset( _
   ByVal i As Integer _
) As IBM.Data.DB2Types.DB2TimeStampOffset
[C#]
public IBM.Data.DB2Types.DB2TimeStampOffset GetDB2TimeStampOffset(
   int i
);
[C++]
public: IBM.Data.DB2Types.DB2TimeStampOffset GetDB2TimeStampOffset(
   int i
);
[JScript]
public function GetDB2TimeStampOffset(
   i : int
) : IBM.Data.DB2Types.DB2TimeStampOffset;

Parameters

i
The zero-based column ordinal.

Return value

A DB2DateTimeOffset object representing the column value.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception Invalid conversion.

Remarks

No conversions are performed.

The following table describes the mapping between the return object data type and the data server data type.

DB2Type Data Type Db2® Data Type Informix® Data Type
TimeStampWithTimeZone TIMESTAMP WITH TIMEZONE N/A