MySqlDataReader.GetTimeSpan Method (String)

MySQL Connector/Net

MySqlDataReaderGetTimeSpan Method (String)
Gets the value of the specified column as a TimeSpan object.

Namespace: MySql.Data.MySqlClient
Assembly: MySql.Data (in MySql.Data.dll) Version: 6.9.9
Syntax
public TimeSpan GetTimeSpan(
	string column
)
Public Function GetTimeSpan ( 
	column As String
) As TimeSpan
public:
TimeSpan GetTimeSpan(
	String^ column
)
member GetTimeSpan : 
        column : string -> TimeSpan 

Parameters

column
Type: SystemString
The zero-based column ordinal or column name.

Return Value

Type: TimeSpan
The value of the specified column.
Remarks

No conversions are performed; therefore, the data retrieved must already be a Time value.

Call IsDBNull to check for null values before calling this method.

See Also