Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class NodaTime.​TimeZones.​Cldr.​MapZone
Assembly: NodaTime
Inheritance: object → MapZone
Implemented Interfaces
Represents a single <c><mapZone></c> element in the CLDR Windows zone mapping file.
Remarks
<para>
Equality is defined in a component-wise fashion. When comparing two values for equality, the <see cref="P:NodaTime.TimeZones.Cldr.MapZone.TzdbIds" /> properties
must return the same IDs in the same order for the values to be considered equal.
</para>
Fields and Constants
public const
string
PrimaryTerritory
Identifier used for the primary territory of each Windows time zone. A zone mapping with
this territory will always have a single entry. The value of this constant is "001".
public const
string
FixedOffsetTerritory
Identifier used for the "fixed offset" territory. A zone mapping with
this territory will always have a single entry. The value of this constant is "ZZ".
Properties
public
string
WindowsId
Gets the Windows system time zone identifier for this mapping, such as "Central Standard Time".
Remarks <para>
Most Windows system time zone identifiers use the name for the "standard" part of the zone as
the overall identifier. Don't be fooled: just because a time zone includes "standard" in its identifier
doesn't mean that it doesn't observe daylight saving time.
</para>
public
string
Territory
Gets the territory code for this mapping.
Remarks This is typically either "001" to indicate that it's the primary territory for this ID, or
"ZZ" to indicate a fixed-offset ID, or a different two-character capitalized code
which indicates the geographical territory.
public
System.​Collections.​Generic.​IList<​string>
TzdbIds
Gets a read-only non-empty collection of TZDB zone identifiers for this mapping, such as
"America/Chicago" and "America/Matamoros" (both of which are TZDB zones associated with the "Central Standard Time"
Windows system time zone).
Remarks For the primary and fixed-offset territory IDs ("001" and "ZZ") this always
contains exactly one time zone ID. The IDs returned are not necessarily canonical in TZDB.
Methods
public
bool
Equals​(MapZone other)
Compares two <see cref="T:NodaTime.TimeZones.Cldr.MapZone" /> values for equality.
See the type documentation for a description of equality semantics.
Returns True if the given value is another map zone equal to this one; false otherwise.
other
The value to compare this map zone with.
public
int
GetHashCode​()
Returns a hash code for this map zone.
See the type documentation for a description of equality semantics.
Returns A hash code for this map zone.
public
bool
Equals​(object obj)
Compares two <see cref="T:NodaTime.TimeZones.Cldr.MapZone" /> values for equality.
See the type documentation for a description of equality semantics.
Returns True if the given value is another map zone equal to this one; false otherwise.
obj
The value to compare this map zone with.
public
string
ToString​()
Returns a <see cref="T:System.String" /> that represents this instance.
Returns The value of the current instance, for diagnostic purposes.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object