TimeWithZone.Compare MethodTimeWithZone.Compare MethodTimeWithZone::Compare Method

Syntax

Public Shared Function Compare( _
    time1 As TimeWithZone, _
    time2 As TimeWithZone, _
    implicitTimeZone As TimeZone _
) As Integer
public static int Compare(
    TimeWithZone time1,
    TimeWithZone time2,
    TimeZone implicitTimeZone
)
public:
static int Compare(
    TimeWithZone time1, 
    TimeWithZone time2, 
    TimeZone implicitTimeZone
)
 

Return Value

Type: System.Int32System.Int32System::Int32

A signed number that indicates the relative order of time1 and time2. The return value has the following meanings.

  • Less than zero indicates that time1 is less than time2.
  • Zero indicates that time1 is equal to time2.
  • Greater than zero indicates that time1 is greater than time2.