Table of Contents

Namespace NuvTools.Common.Dates

Classes

DateTimeServiceCollectionExtensions

Provides DI extensions for IDateTimeService.

SystemDateTimeService

Default IDateTimeService: the clock comes from a TimeProvider (System unless one is given) and the zone from a TimeZoneRegion.

TimeZoneExtensions

Provides helper methods for timezone conversions.

Interfaces

IDateTimeService

The current time and a configured time zone (Region), for code that needs the time people live by: "today" for a due date, a time printed on a document. The clock itself comes from a TimeProvider, so a test can drive it with a fake one.