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.​TzdbZone1970Location
Assembly: NodaTime
Inheritance: object → TzdbZone1970Location
A location entry generated from the "zone1970.tab" file in a TZDB release. This can be used to provide users with a choice of time zone, although it is not internationalized. This is equivalent to <see cref="T:NodaTime.TimeZones.TzdbZoneLocation" /> , except that multiple countries may be represented.
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
System.​Collections.​Generic.​IList<​Country>
Countries
Gets the list of countries associated with this location.
Remarks The list is immutable, and will always contain at least one entry. The list is
in the order specified in "zone1970.tab", so the first entry is always the
country containing the position indicated by the latitude and longitude, and
is the most populous country in the list. No entry in this list is ever null.
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