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.​TzdbZoneLocation
Assembly: NodaTime
Inheritance: object → TzdbZoneLocation
A location entry generated from the "zone.tab" file in a TZDB release. This can be used to provide users with a choice of time zone, although it is not internationalized.
Properties
public
double
Latitude
Gets the latitude in degrees; positive for North, negative for South.
Remarks The value will be in the range [-90, 90].
public
double
Longitude
Gets the longitude in degrees; positive for East, negative for West.
Remarks The value will be in the range [-180, 180].
public
string
CountryName
Gets the English name of the country containing the location, which is never empty.
public
string
CountryCode
Gets the ISO-3166 2-letter country code for the country containing the location.
public
string
ZoneId
The ID of the time zone for this location.
Remarks If this mapping was fetched from a <see cref="T:NodaTime.TimeZones.TzdbDateTimeZoneSource" /> , it will always be a valid ID within that source.
public
string
Comment
Gets the comment (in English) for the mapping, if any.
Remarks This is usually used to differentiate between locations in the same country.
This will return an empty string if no comment was provided in the original data.
Methods
public
bool
Equals​(object obj)
Inherited from object
protected
void
Finalize​()
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object