Soenneker.Utils.TimeZones 4.0.769

Prefix Reserved
dotnet add package Soenneker.Utils.TimeZones --version 4.0.769
                    
NuGet\Install-Package Soenneker.Utils.TimeZones -Version 4.0.769
                    
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="4.0.769" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Utils.TimeZones" Version="4.0.769" />
                    
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 4.0.769
                    
#r "nuget: Soenneker.Utils.TimeZones, 4.0.769"
                    
#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@4.0.769
                    
#: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=4.0.769
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Utils.TimeZones&version=4.0.769
                    
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 net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
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
4.0.769 354 9/15/2026
4.0.768 430 9/14/2026
4.0.767 4,615 8/30/2026
4.0.766 593 8/29/2026
4.0.765 503 8/29/2026
4.0.764 5,277 7/27/2026
4.0.763 2,174 7/16/2026
4.0.762 4,371 6/18/2026
4.0.761 3,595 6/5/2026
4.0.760 3,981 4/23/2026
4.0.759 4,122 3/12/2026
4.0.758 158 3/12/2026
4.0.755 3,233 3/10/2026
4.0.754 1,156 3/9/2026
4.0.753 174 3/9/2026
4.0.752 2,554 3/4/2026
4.0.751 12,821 1/2/2026
4.0.750 140 1/2/2026
4.0.749 948 1/2/2026
4.0.748 4,227 11/20/2025
Loading failed

Update dependency dotnet-sdk to v10.0.401 (#1335)