[This is preliminary documentation and is subject to change.]
Creates a new location.

C# | Visual Basic | Visual C++ |
public TzdbZoneLocation( int latitudeSeconds, int longitudeSeconds, string countryName, string countryCode, string zoneId, string comment )

- latitudeSeconds (Int32)
- Latitude of the location, in seconds.
- longitudeSeconds (Int32)
- Longitude of the location, in seconds.
- countryName (String)
- English country name of the location, in degrees. Must not be null.
- countryCode (String)
- ISO-3166 country code of the location. Must not be null.
- zoneId (String)
- Time zone identifier of the location. Must not be null.
- comment (String)
- Optional comment. Must not be null, but may be empty.

This constructor is only public for the sake of testability. Non-test code should
usually obtain locations from a TzdbDateTimeZoneSource.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | The latitude or longitude is invalid. |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)