Phema.DateTime 3.0.0

C# DateTime wrapper for Microsoft.Extensions.DependencyInjection

Install-Package Phema.DateTime -Version 3.0.0
dotnet add package Phema.DateTime --version 3.0.0
<PackageReference Include="Phema.DateTime" 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 --version 3.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Phema.DateTime, 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 as a Cake Addin
#addin nuget:?package=Phema.DateTime&version=3.0.0

// Install Phema.DateTime as a Cake Tool
#tool nuget:?package=Phema.DateTime&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 (3)

Showing the top 3 NuGet packages that depend on Phema.DateTime:

Package Downloads
Phema.DateTime.Utc
C# DateTime wrapper for Microsoft.Extensions.DependencyInjection
Phema.DateTime.Local
C# DateTime wrapper for Microsoft.Extensions.DependencyInjection
Phema.DateTime.Test
C# DateTime wrapper for Microsoft.Extensions.DependencyInjection

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.0 511 7/24/2019
3.0.0-preview3.0.0 173 3/30/2019