DB2UpdatableRecord.GetTime Method

Gets the value of the specified column as a TimeSpan object.

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

Syntax


[Visual Basic]
Public Function GetTime( _
   ByVal i As Integer _
) As TimeSpan
[C#]
public TimeSpan GetTime(
   int i
);
[C++]
public: TimeSpan GetTime(
   int i
);
[JScript]
public function GetTime(
   i : int
) : TimeSpan;

Parameters

i
The zero-based column ordinal.

Exceptions

Exception type Condition
DB2Exception Invalid conversion.

Remarks

No conversions are performed. The data to be retrieved must be of DB2Type.Time.

The following table describes the mapping between the return object data type and the data server data type.
DB2®Type Data Type Db2® Data Type Informix® Data Type
Time TIME DATETIME (time precision)