Npgsql Api Docs |

# NpgsqlInterval Explicit NpgsqlInterval to TimeSpan Conversion

Implicit cast of an NpgsqlInterval to a TimeSpan.

[Visual Basic]
returnValue = NpgsqlInterval.op_Explicit(interval)
[C#]
public static explicit operator TimeSpan(
NpgsqlInterval interval
);

#### Parameters

interval
  A NpgsqlInterval.

#### Return Value

An equivalent TimeSpan.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace