Npgsql Api Docs

NpgsqlTimeTZ.CompareTo Method (NpgsqlTimeTZ)

Compares this with another NpgsqlTimeTZ. As per postgres' rules, first the times are compared as if they were both in the same timezone. If they are equal then then timezones are compared (+01:00 being "smaller" than -01:00).

[Visual Basic]
NotOverridable Overloads Public Function CompareTo( _
   ByVal other As NpgsqlTimeTZ _
) As Integer _
    Implements IComparable`1.CompareTo
[C#]
public int CompareTo(
   NpgsqlTimeTZ other
);

Parameters

other
the NpgsqlTimeTZ to compare with.

Return Value

An integer which is 0 if they are equal, < 0 if this is the smaller and > 0 if this is the larger.

Implements

IComparable`1.CompareTo

See Also

NpgsqlTimeTZ Class | NpgsqlTypes Namespace | NpgsqlTimeTZ.CompareTo Overload List