The Inner Drive Extensible Architecture™—the Idea™
Demonstration: Time zones
The IDEA™ includes a fully-object-oriented, easy-to-integrate set of tools to allow you to use the Internet-standard time zone database—used throughout the world on millions of Unix computers—in your .NET apps.
This demonstration will let you choose any of the 454 time zones in the latest version of the TZDB.
See also the SDK for the Inner Drive Extensible Architecture™—the Idea™.
Region:
UTC | 2/6/2025 7:56:52 PM +00:00 UTC |
Time to view | |
Zone: |
Code in program.cs
builder.Services.AddSingleton<ISecretProvider, KeyVaultSecretProvider>(); builder.Services.AddSingleton<ITimeZoneFactory, TimeZoneFactory>(); builder.Services.AddSingleton<ITzInfoFileReader, AzureTzInfoFileReader>(); var factory = app.Services.GetRequiredService<ITimeZoneFactory>(); await factory.InitializeAsync();
Code on this page
@inject ITimeZoneFactory TimeZoneFactory private string? _selectedZoneName; private readonly string _utcName = IdtTimeZone.Utc.Name; private async Task<IdtTimeZone> SelectedTimeZone() { var zoneName = _selectedZoneName ?? _utcName; return await TimeZoneFactory.FindAsync(zoneName, ZoneNotFoundBehavior.ReturnDefault); }
Inner Drive Extensible Architecture - Time Zones Provides time zone services for Inner Drive applications Version 5.2.9017.0 Release CLR 8.0.12 9/7/2024 6:21 PM Copyright ©2024 Inner Drive Technology. All rights reserved. Portions Copyright ©1986-2024 David Braverman. inner-drive.com The public-facing website for Inner Drive Technology Version 2.1.9073.0 Release CLR 8.0.12 11/2/2024 3:32 PM Copyright ©2024 Inner Drive Technology. All rights reserved. Portions Copyright ©1986-2024 David Braverman.