Gets the value of the specified column as a Time object.
[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;
| 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) |