Soenneker.Utils.TimeZones 11.0.784

Prefix Reserved
dotnet add package Soenneker.Utils.TimeZones --version 11.0.784
                    
NuGet\Install-Package Soenneker.Utils.TimeZones -Version 11.0.784
                    
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="Soenneker.Utils.TimeZones" Version="11.0.784" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.TimeZones" Version="11.0.784" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Utils.TimeZones" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.Utils.TimeZones --version 11.0.784
                    
#r "nuget: Soenneker.Utils.TimeZones, 11.0.784"
                    
#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.
#:package Soenneker.Utils.TimeZones@11.0.784
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.Utils.TimeZones&version=11.0.784
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.TimeZones&version=11.0.784
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

alternate text is missing from this package README image Soenneker.Utils.TimeZones

Cached TimeZoneInfo access for common continental US zones and IANA/CLDR identifier resolution through TimeZoneConverter.

Installation

dotnet add package Soenneker.Utils.TimeZones

Common US zones

using Soenneker.Utils.TimeZones;

TimeZoneInfo eastern = Tz.Eastern;
TimeZoneInfo central = Tz.Central;
TimeZoneInfo mountain = Tz.Mountain;
TimeZoneInfo pacific = Tz.Pacific;
TimeZoneInfo arizona = Tz.Arizona;

The properties are initialized lazily and then reused. They resolve these IANA zones through TimeZoneConverter:

Property Source identifier Daylight saving time
Eastern America/New_York Observed
Central America/Chicago Observed
Mountain America/Boise Observed
Pacific America/Los_Angeles Observed
Arizona America/Phoenix Not observed

TimeZoneInfo.Id may be an IANA identifier or its Windows equivalent depending on the operating system. Use TimeZoneInfo conversion APIs instead of comparing the returned Id with a hard-coded platform-specific value.

Resolve an identifier

TimeZoneInfo zone = Tz.FromCldr("Europe/Paris");
DateTimeOffset local = TimeZoneInfo.ConvertTime(instant, zone);

The five built-in US zones return their shared property instances. America/Denver and America/Boise both return Tz.Mountain, whose source identifier is America/Boise. Other identifiers are resolved by TZConvert.GetTimeZoneInfo and cached by the exact input string.

Unknown or unsupported identifiers throw the exception produced by TimeZoneConverter. The fallback cache has no eviction, so do not call FromCldr with an unbounded stream of user-controlled identifiers without validating or constraining them first.

Time-zone rules come from the operating system and TimeZoneConverter mappings. They can change as governments and time-zone databases change; store the original zone identifier when future recalculation matters.

Call the static Tz members directly; no dependency-injection registration is required.

Product Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on Soenneker.Utils.TimeZones:

Package Downloads
Soenneker.AdaptiveCard.Util

A utility library for Adaptive Card construction

Soenneker.Extensions.Strings.Files

A collection of helpful file related string extension methods

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.0.784 361 11/18/2026
11.0.783 579 11/11/2026
11.0.782 591 11/2/2026
11.0.781 299 10/26/2026
4.0.780 1,079 10/14/2026
4.0.779 149 10/14/2026
4.0.774 252 10/13/2026
4.0.773 113 10/12/2026
4.0.772 233 10/12/2026
4.0.771 274 10/11/2026
4.0.770 855 9/24/2026
4.0.769 1,206 9/15/2026
4.0.768 554 9/14/2026
4.0.767 4,673 8/30/2026
4.0.766 622 8/29/2026
4.0.765 531 8/29/2026
4.0.764 5,321 7/27/2026
4.0.763 2,200 7/16/2026
4.0.762 4,396 6/18/2026
4.0.761 3,618 6/5/2026
Loading failed

Updated NuGet packages