[This is preliminary documentation and is subject to change.]
Equality comparer for time zones, comparing specific aspects of the zone intervals within
a time zone for a specific interval of the time line.

C# | Visual Basic | Visual C++ |
public sealed class ZoneEqualityComparer : IEqualityComparer<DateTimeZone>
Public NotInheritable Class ZoneEqualityComparer _ Implements IEqualityComparer(Of DateTimeZone)
public ref class ZoneEqualityComparer sealed : IEqualityComparer<DateTimeZone^>

All Members | Methods | ||||
Icon | Member | Description |
---|---|---|
![]() | Equals(DateTimeZone, DateTimeZone) |
Compares two time zones for equality according to the options and interval provided to this comparer.
|
![]() ![]() | ForInterval(Interval) |
Returns a ZoneEqualityComparer for the given interval with the default options.
|
![]() | GetHashCode(DateTimeZone) |
Returns a hash code for the specified time zone.
|
![]() | WithOptions(ZoneEqualityComparer..::..Options) |
Returns a comparer operating over the same interval as this one, but with the given
set of options.
|

The default behaviour of this comparator is to consider two time zones to be equal if they share the same wall
offsets at all points within a given time interval, regardless of other aspects of each
ZoneInterval within the two time zones. This behaviour can be changed using the
WithOptions(ZoneEqualityComparer..::..Options) method.

Object | |
![]() | ZoneEqualityComparer |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)