InnerDrive.TimeZones
5.2.1235.1
See the version list below for details.
dotnet add package InnerDrive.TimeZones --version 5.2.1235.1
NuGet\Install-Package InnerDrive.TimeZones -Version 5.2.1235.1
<PackageReference Include="InnerDrive.TimeZones" Version="5.2.1235.1" />
<PackageVersion Include="InnerDrive.TimeZones" Version="5.2.1235.1" />
<PackageReference Include="InnerDrive.TimeZones" />
paket add InnerDrive.TimeZones --version 5.2.1235.1
#r "nuget: InnerDrive.TimeZones, 5.2.1235.1"
#:package InnerDrive.TimeZones@5.2.1235.1
#addin nuget:?package=InnerDrive.TimeZones&version=5.2.1235.1
#tool nuget:?package=InnerDrive.TimeZones&version=5.2.1235.1
Inner Drive Extensible Architeture
The Inner Drive Extensible Architecture implements common .NET development situations including time zones, money, measurements and conversions, and Microsoft Azure features.
InnerDrive.TimeZones
Features
- Implements the IANA time zone database with an easy-to-use API
- Zones are JIT-compiled for small memory footprint and quick initialization
- Optional extension in the InnerDrive.Azure package to load zone info from Azure blobs
- Works with native .NET data types (
System.DateTimeandSystem.DateTimeOffset)
Prerequisites
This package runs on .NET 8. It depends on the InnerDrive.Core package.
Usage
- Download the IANA time zone database
- Add settings to
appSettings.json:
{
"timeZoneSettings": {
"DefaultTimeZoneHomeZone": "America/Chicago",
"TimeZoneRuleFolder": ".\\",
"TimeZoneRuleFileFull": "asia,europe,northAmerica,southAmerica,backward,etcetera"
}
- Initialize the
TimeZoneFactory:
@inject IConfiguration Configuration
var fileSpec = Configuration[key];
var reader = new LocalTzInfoFileReader(Configuration);
await reader.LoadAsync(fileSpec);
var factory = new TimeZoneFactory(Configuration, reader) { ThrowOnFailure = true };
await factory.LoadFileDataAsync();
await factory.InitializeAsync();
- Get local time in your time zone:
var timeZone = await factory.FindAsync("America/Chicago", ZoneNotFoundBehavior.ReturnDefault);
var now = DateTimeOffset.UtcNow;
var localTime = timeZone.ToLocalTime(now);
var testZoneName = Configuration[TimeZoneFactory.DefaultTimeZoneNameSettingKey];
Trace.WriteLine($"{now} == {localTime}");
Output >> 2025-10-05 16:11:34 +00:00 == 2025-10-05 11:11:34 -05:00
var info = timeZone.CurrentInfo(now);
Trace.WriteLine(info);
Output >> 2025-10-05 11:11 CDT
The Inner Drive Technology website has a full SDK and example code. We also have a demo weather site that uses all the IDEA components.
Feedback
Comments or questions? Send feedback
| Product | Versions 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 was computed. 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. net10.0 was computed. 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. |
-
net8.0
- InnerDrive.Core (>= 5.2.1235.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on InnerDrive.TimeZones:
| Package | Downloads |
|---|---|
|
InnerDrive.Azure
Acceleration tools for Microsoft Azure projects |
|
|
InnerDrive.Geography
Provides geographical services for Inner Drive applications |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.3.1263 | 572 | 11/21/2025 |
| 5.2.1247.1 | 349 | 10/12/2025 |
| 5.2.1235.1 | 242 | 10/5/2025 |
| 5.2.1076.1 | 653 | 2/14/2025 |
| 5.2.989.1 | 392 | 11/2/2024 |
| 5.2.938.1 | 438 | 9/7/2024 |
| 5.1.926.1 | 243 | 9/2/2024 |
| 5.1.871.1 | 444 | 6/6/2024 |
| 5.1.854.1 | 360 | 5/21/2024 |
| 5.1.844.1 | 417 | 3/27/2024 |
| 5.0.826.1 | 533 | 1/6/2024 |
| 5.0.816.1 | 331 | 12/24/2023 |
| 5.0.801.1 | 403 | 11/26/2023 |
| 5.0.777.1 | 429 | 9/28/2023 |
| 5.0.754.1 | 562 | 8/5/2023 |
| 5.0.746.1 | 463 | 7/15/2023 |
Significant performance improvements to IdtTimeZone.ToLocalTime and thread-safety improvements to TimeZoneFactory