TimeWithZone.Equality OperatorTimeWithZone.Equality OperatorTimeWithZone::Equality Operator
Syntax
Public Shared Operator =( _ time1 As TimeWithZone, _ time2 As TimeWithZone _ ) As Boolean
public static bool operator ==( TimeWithZone time1, TimeWithZone time2 )
public: static bool operator ==( TimeWithZone time1, TimeWithZone time2 )
Parameters
- time1
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The first TimeWithZoneTimeWithZoneTimeWithZone to compare.
- time2
Type: XmlPrime.TimeWithZoneXmlPrime.TimeWithZoneXmlPrime::TimeWithZone
The second TimeWithZoneTimeWithZoneTimeWithZone to compare.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the time1 and time2 are equal; otherwise, false
False
false
.
Remarks
Two TimeWithZoneTimeWithZoneTimeWithZone values are considered equal if they have they have equal values for their SecondsPastMidnightSecondsPastMidnightSecondsPastMidnight and TimeZoneTimeZoneTimeZone properties.
Consider using Equals (TimeWithZone, TimeWithZone, TimeZone)Equals (TimeWithZone, TimeWithZone, TimeZone)Equals (TimeWithZone, TimeWithZone, TimeZone) to compare TimeWithZoneTimeWithZoneTimeWithZone values with differing TimeZoneTimeZoneTimeZone properties.