Soenneker.Extensions.TimeZoneInfos
4.0.18
Prefix Reserved
dotnet add package Soenneker.Extensions.TimeZoneInfos --version 4.0.18
NuGet\Install-Package Soenneker.Extensions.TimeZoneInfos -Version 4.0.18
<PackageReference Include="Soenneker.Extensions.TimeZoneInfos" Version="4.0.18" />
<PackageVersion Include="Soenneker.Extensions.TimeZoneInfos" Version="4.0.18" />
<PackageReference Include="Soenneker.Extensions.TimeZoneInfos" />
paket add Soenneker.Extensions.TimeZoneInfos --version 4.0.18
#r "nuget: Soenneker.Extensions.TimeZoneInfos, 4.0.18"
#:package Soenneker.Extensions.TimeZoneInfos@4.0.18
#addin nuget:?package=Soenneker.Extensions.TimeZoneInfos&version=4.0.18
#tool nuget:?package=Soenneker.Extensions.TimeZoneInfos&version=4.0.18
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.18 | 41 | 9/12/2026 |
| 4.0.17 | 13,226 | 8/30/2026 |
| 4.0.16 | 1,669 | 8/29/2026 |
| 4.0.15 | 17,419 | 7/28/2026 |
| 4.0.14 | 6,808 | 7/16/2026 |
| 4.0.13 | 12,168 | 6/18/2026 |
| 4.0.12 | 10,706 | 6/5/2026 |
| 4.0.11 | 12,474 | 4/22/2026 |
| 4.0.10 | 11,709 | 3/12/2026 |
| 4.0.9 | 474 | 3/12/2026 |
| 4.0.7 | 491 | 3/12/2026 |
| 4.0.6 | 8,232 | 3/10/2026 |
| 4.0.5 | 2,132 | 3/9/2026 |
| 4.0.4 | 130 | 3/9/2026 |
| 4.0.3 | 138 | 3/9/2026 |
| 4.0.2 | 9,521 | 3/4/2026 |
| 4.0.1 | 40,571 | 1/2/2026 |
Use NuGet trusted publishing in publishing workflows