TimeZone.Compare MethodTimeZone.Compare MethodTimeZone::Compare Method

Compares two specified TimeZoneTimeZoneTimeZone values.

Syntax

Public Shared Function Compare( _
    timeZone1 As TimeZone, _
    timeZone2 As TimeZone _
) As Integer
public static int Compare(
    TimeZone timeZone1,
    TimeZone timeZone2
)
public:
static int Compare(
    TimeZone timeZone1, 
    TimeZone timeZone2
)
 

Return Value

Type: System.Int32System.Int32System::Int32

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

  • Less than zero indicates that timeZone1 is less than timeZone2.
  • Zero indicates that timeZone1 is equal to timeZone2.
  • Greater than zero indicates that timeZone1 is greater than timeZone2.