/Tappau.DateTimeProvider

DateTimeProvider implementation

Primary LanguageC#

Tappau.DateTimeProvider

CI

Simple library that provides an abstraction over static DateTime and DateTimeOffset classes.

Install via Nuget

Install-Package Tappau.DateTimeProvider

For only the abstactions you can also use this

Install-Package Tappau.DateTimeProvider.Abstractions

Has a Microsoft.ServiceCollection.Extension to register either of the implementations as Singleton.

This allows us to not rely on static class, and enable simple mocking of DateTime utilities in our codebase.