Npgsql Api Docs |

# NpgsqlInterval.Parse Method

Parses a String and returns a NpgsqlInterval instance. Designed to use the formats generally returned by PostgreSQL.

[Visual Basic]
Public Shared Function Parse( _
ByVal str As String _
) As NpgsqlInterval
[C#]
public static NpgsqlInterval Parse(
string str
);

#### Parameters

str
  The String to parse.

#### Return Value

An NpgsqlInterval represented by the argument.

#### Exceptions

Exception Type | Condition
--- | ---
ArgumentNullException | The string was null.
OverflowException | A value obtained from parsing the string exceeded the values allowed for the relevant component.
FormatException | The string was not in a format that could be parsed to produce an NpgsqlInterval.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace