Gets the value of the specified column as a TimeSpan object.
[Visual Basic]
Public Function GetTimeSpan( _
ByVal i As Integer _
) As TimeSpan
[C#]
public TimeSpan GetTimeSpan(
int i
);
[C++]
public: TimeSpan GetTimeSpan(
int i
);
[JScript]
public function GetTimeSpan(
i : int
) : TimeSpan;
| Exception type | Condition |
|---|---|
| DB2Exception | Invalid conversion. |
No conversions are performed. The data to be retrieved must be of DB2Type.Time.
| DB2Type Data Type | DB2 Data Type | Informix® Data Type |
|---|---|---|
| Time | TIME | DATETIME (time precision) |