/GeoTimeZone

Provides an IANA time zone identifier from latitude and longitude coordinates.

Primary LanguageC#OtherNOASSERTION

GeoTimeZone

Provides an IANA time zone identifier from latitude and longitude coordinates.

Installation

PM> Install-Package GeoTimeZone

Supported Environments

As of version 2.0, The Nuget package targets netstandard1.0 and portable40-net40+sl5+win8+wp8. This provides support for the most environments, including:

  • .NET Core (Windows, Mac, Linux, etc.)
  • .NET Framework 4.0+
  • Windows 8, 8.1, 10, WinRT, UWP, etc.
  • Xamarian for iOS / Android
  • Windows Phone 8+
  • Silverlight 5

Example Usage

string tz = TimeZoneLookup.GetTimeZone(50.4372, -3.5559).Result;  // "Europe/London"

Usage Notes

This library uses the time zone border definitions from the Timezone Boundary Builder project, which in-turn derive from Open Street Map. As some international borders are the subject of dispute, the results may or may not align with your worldview. Use at your own risk.

License

This library is provided free of charge, under the terms of the MIT license.