Npgsql Api Docs |

# NpgsqlInterval.Compare Method

Compares two NpgsqlInterval instances.

[Visual Basic]
Public Shared Function Compare( _
ByVal x As NpgsqlInterval, _
ByVal y As NpgsqlInterval _
) As Integer
[C#]
public static int Compare(
NpgsqlInterval x,
NpgsqlInterval y
);

#### Parameters

x
  The first NpgsqlInterval.
y
  The second NpgsqlInterval.

#### Return Value

0 if the two are equal or equivalent. A value greater than zero if x is greater than y, a value less than zero if x is less than y.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace