GeoTimeZone 5.3.0

dotnet add package GeoTimeZone --version 5.3.0                
NuGet\Install-Package GeoTimeZone -Version 5.3.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GeoTimeZone" Version="5.3.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GeoTimeZone --version 5.3.0                
#r "nuget: GeoTimeZone, 5.3.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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 NuGet Version

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.1

    • No dependencies.
  • net6.0

    • No dependencies.

NuGet packages (16)

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 1,102,512 9/10/2023
5.2.0 845,512 12/19/2022
5.1.0 464,634 9/20/2022
5.0.0 42,544 9/6/2022
4.1.0 2,012,480 9/17/2020
4.0.0 853,772 6/18/2019
3.2.0 931,594 4/27/2018
3.1.0 51,706 11/6/2017
3.0.0 7,614 10/21/2017
2.0.0 106,880 12/30/2016
1.3.0 59,013 6/9/2016
1.2.0 30,443 5/6/2016
1.1.0 30,596 11/15/2015
1.0.1 6,774 7/28/2014
1.0.0 3,407 7/28/2014