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 )
Parameters
- time1
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The first TimeWithZoneTimeWithZoneTimeWithZone to compare.
- time2
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The second TimeWithZoneTimeWithZoneTimeWithZone to compare.
- implicitTimeZone
Type: XmlPrime.TimeZoneXmlPrime.TimeZoneXmlPrime::TimeZone
The time zone to use if either TimeWithZoneTimeWithZoneTimeWithZone value does not have a time zone.
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.