Phema.DateTime.Utc 3.0.0

C# DateTime wrapper for Microsoft.Extensions.DependencyInjection

Install-Package Phema.DateTime.Utc -Version 3.0.0
dotnet add package Phema.DateTime.Utc --version 3.0.0
<PackageReference Include="Phema.DateTime.Utc" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Phema.DateTime.Utc --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Phema.DateTime.Utc, 3.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Phema.DateTime.Utc as a Cake Addin
#addin nuget:?package=Phema.DateTime.Utc&version=3.0.0

// Install Phema.DateTime.Utc as a Cake Tool
#tool nuget:?package=Phema.DateTime.Utc&version=3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Phema.DateTime

Nuget

C# DateTime wrapper for Microsoft.Extensions.DependencyInjection

Packages

  • Phema.DateTime - Core abstractions
  • Phema.DateTime.Utc - .AddUtcDateTime()
  • Phema.DateTime.Local - .AddLocalDateTime()

Usage

// Add
services.AddUtcDateTime(); // .AddLocalDateTime();

// Get
var dateTime = provider.GetRequiredService<IDateTime>();

// Use
var now = dateTime.Now;

Phema.DateTime

Nuget

C# DateTime wrapper for Microsoft.Extensions.DependencyInjection

Packages

  • Phema.DateTime - Core abstractions
  • Phema.DateTime.Utc - .AddUtcDateTime()
  • Phema.DateTime.Local - .AddLocalDateTime()

Usage

// Add
services.AddUtcDateTime(); // .AddLocalDateTime();

// Get
var dateTime = provider.GetRequiredService<IDateTime>();

// Use
var now = dateTime.Now;

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.0 269 7/24/2019
3.0.0-preview3.0.0 174 3/30/2019