Soenneker.Extensions.TimeZoneInfos
4.0.17
Prefix Reserved
dotnet add package Soenneker.Extensions.TimeZoneInfos --version 4.0.17
NuGet\Install-Package Soenneker.Extensions.TimeZoneInfos -Version 4.0.17
<PackageReference Include="Soenneker.Extensions.TimeZoneInfos" Version="4.0.17" />
<PackageVersion Include="Soenneker.Extensions.TimeZoneInfos" Version="4.0.17" />
<PackageReference Include="Soenneker.Extensions.TimeZoneInfos" />
paket add Soenneker.Extensions.TimeZoneInfos --version 4.0.17
#r "nuget: Soenneker.Extensions.TimeZoneInfos, 4.0.17"
#:package Soenneker.Extensions.TimeZoneInfos@4.0.17
#addin nuget:?package=Soenneker.Extensions.TimeZoneInfos&version=4.0.17
#tool nuget:?package=Soenneker.Extensions.TimeZoneInfos&version=4.0.17
Soenneker.Extensions.TimeZoneInfos
Map the four continental US time-zone IDs to stable, daylight-agnostic abbreviations.
Installation
dotnet add package Soenneker.Extensions.TimeZoneInfos
Usage
using Soenneker.Extensions.TimeZoneInfos;
TimeZoneInfo timeZone = TimeZoneInfo.FindSystemTimeZoneById("America/Chicago");
string abbreviation = timeZone.ToSimpleAbbreviation(); // "CT"
The mapping recognizes both Windows and IANA identifiers:
| Windows ID | IANA ID | Result |
|---|---|---|
Eastern Standard Time |
America/New_York |
ET |
Central Standard Time |
America/Chicago |
CT |
Mountain Standard Time |
America/Denver |
MT |
Pacific Standard Time |
America/Los_Angeles |
PT |
The comparison is case-insensitive. Other zones return "Unknown".
The result deliberately does not distinguish standard time from daylight time: New York returns ET, not EST or EDT. This method does not inspect an instant or calculate an offset; use TimeZoneInfo.GetUtcOffset() when the date-specific offset matters.
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Soenneker.Extensions.TimeZoneInfos:
| Package | Downloads |
|---|---|
|
Soenneker.Extensions.DateTime
A collection of helpful DateTime extension methods |
|
|
Soenneker.Extensions.DateTimeOffsets
A collection of helpful DateTimeOffset extension methods |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.17 | 6,132 | 8/30/2026 |
| 4.0.16 | 1,662 | 8/29/2026 |
| 4.0.15 | 17,401 | 7/28/2026 |
| 4.0.14 | 6,807 | 7/16/2026 |
| 4.0.13 | 12,167 | 6/18/2026 |
| 4.0.12 | 10,698 | 6/5/2026 |
| 4.0.11 | 12,461 | 4/22/2026 |
| 4.0.10 | 11,703 | 3/12/2026 |
| 4.0.9 | 473 | 3/12/2026 |
| 4.0.7 | 488 | 3/12/2026 |
| 4.0.6 | 8,052 | 3/10/2026 |
| 4.0.5 | 2,131 | 3/9/2026 |
| 4.0.4 | 129 | 3/9/2026 |
| 4.0.3 | 135 | 3/9/2026 |
| 4.0.2 | 9,520 | 3/4/2026 |
| 4.0.1 | 40,567 | 1/2/2026 |
Define time zone abbreviation mapping