Timezoner 1.7.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Timezoner --version 1.7.0                
NuGet\Install-Package Timezoner -Version 1.7.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="Timezoner" Version="1.7.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Timezoner --version 1.7.0                
#r "nuget: Timezoner, 1.7.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 Timezoner as a Cake Addin
#addin nuget:?package=Timezoner&version=1.7.0

// Install Timezoner as a Cake Tool
#tool nuget:?package=Timezoner&version=1.7.0                

.NET CI/CD Nuget Azure Static Web Apps CI/CD

Timezoner

A simple library to provide a list of time zones, providing an Id, Name, and Offset.

Demo

See the TimeZoner in action: https://zealous-island-09cfe4010.azurestaticapps.net/. The demo is a Blazor app, but the libraries can be used in other 'non-web' applications as well.

Why this project exists: TimeZoneInfo provides timezones that are available for a particular system. That list could change from system to system. I noticed a difference in the lists when getting timezones in a Windows environment and a Linux environment. Thanks to the ability of .NET Core to run on multiple platforms, I created this library to provide my applications consitent timezone data across platforms.

Methods:

  • GetTimezones()
  • GetTimezoneById(string id)
  • GetOffsetAsTimeSpan(string id)
  • GetOffsetAsTimeSpan(Timezone zone)

Timezoner is available on Nuget: https://www.nuget.org/packages/Timezoner/

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.7.1 42 2/9/2025
1.7.0 71 2/9/2025
1.6.0 172 2/4/2024
1.5.1 239 7/17/2023
1.5.0 272 2/27/2023
1.4.0 685 3/12/2022
1.3.0 2,938 11/25/2021
1.2.0 16,205 10/17/2018
1.0.0 15,729 10/17/2018 1.0.0 is deprecated because it is no longer maintained.

v1.7.0: Added .NET 9 support.