GeoTimeZone 5.3.0
dotnet add package GeoTimeZone --version 5.3.0
NuGet\Install-Package GeoTimeZone -Version 5.3.0
<PackageReference Include="GeoTimeZone" Version="5.3.0" />
paket add GeoTimeZone --version 5.3.0
#r "nuget: GeoTimeZone, 5.3.0"
// Install GeoTimeZone as a Cake Addin #addin nuget:?package=GeoTimeZone&version=5.3.0 // Install GeoTimeZone as a Cake Tool #tool nuget:?package=GeoTimeZone&version=5.3.0
GeoTimeZone
Provides an IANA time zone identifier from latitude and longitude coordinates.
Nuget Installation
PM> Install-Package GeoTimeZone
Supported Environments
As of version 5.0.0, GeoTimeZone works with all of the following:
- .NET 5 or greater
- .NET Core 2.0 or greater
- .NET Framework 4.6.2 and greater
Note that .NET Framework versions less than 4.6.2 are no longer supported.
Example Usage
string tz = TimeZoneLookup.GetTimeZone(50.4372, -3.5559).Result; // "Europe/London"
Usage Notes
This library returns IANA time zone IDs. If you need a Windows time zone ID, pass the return value into the TimeZoneConverter library's TZConvert.IanaToWindows
method, or to TZConvert.GetTimeZoneInfo
to get a TimeZoneInfo
object in a platform-neutral manner.
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.
Acknowledgements
Huge thank you to the following people:
- Evan Siroky, who tirelessly maintains the Time Zone Boundary Builder project, which we use for our source data.
- Eric Muller, who authored the original tz_world data set (now deprecated in favor of TBB).
- Simon Bartlett, who contributed all the polygon indexing and lookup bits to this library.
- Sharon Lourduraj, who wrote GeoHash-net that we used for our original implementation.
- David Troy, who wrote Geohash-js that Sharon later ported to .NET
- Nick Johnson, who's excellent blog post has been an inspiration to this project and so many others!
- Jonas Nyrup, who has helped with performance optimizations.
License
This library is provided free of charge, under the terms of the MIT license.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.6.2
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (15)
Showing the top 5 NuGet packages that depend on GeoTimeZone:
Package | Downloads |
---|---|
Bsb.Services.TimeZoneLookupService
This service allows user to lookup time zone by zip code or geo location and covert time zone between windows and IANA format |
|
PrabalGhosh.Utilities
Package Description |
|
Astap.Lib
Package Description |
|
Nox.Types.Extensions
Package Description |
|
Nox.Reference.Data.World
Common Nox Reference entities |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on GeoTimeZone:
Repository | Stars |
---|---|
t1m0thyj/WinDynamicDesktop
Port of macOS Mojave Dynamic Desktop feature to Windows
|
|
rocksdanister/weather
Windows native weather app powered by DirectX12 animations
|
Version | Downloads | Last updated |
---|---|---|
5.3.0 | 894,795 | 9/10/2023 |
5.2.0 | 818,684 | 12/19/2022 |
5.1.0 | 459,905 | 9/20/2022 |
5.0.0 | 41,064 | 9/6/2022 |
4.1.0 | 1,966,194 | 9/17/2020 |
4.0.0 | 841,909 | 6/18/2019 |
3.2.0 | 918,335 | 4/27/2018 |
3.1.0 | 51,658 | 11/6/2017 |
3.0.0 | 7,386 | 10/21/2017 |
2.0.0 | 106,753 | 12/30/2016 |
1.3.0 | 57,581 | 6/9/2016 |
1.2.0 | 29,173 | 5/6/2016 |
1.1.0 | 30,589 | 11/15/2015 |
1.0.1 | 6,662 | 7/28/2014 |
1.0.0 | 3,251 | 7/28/2014 |