KoreForge.Time 1.1.2

dotnet add package KoreForge.Time --version 1.1.2
                    
NuGet\Install-Package KoreForge.Time -Version 1.1.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="KoreForge.Time" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KoreForge.Time" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="KoreForge.Time" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add KoreForge.Time --version 1.1.2
                    
#r "nuget: KoreForge.Time, 1.1.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package KoreForge.Time@1.1.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=KoreForge.Time&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=KoreForge.Time&version=1.1.2
                    
Install as a Cake Tool

KoreForge.Time

Deterministic and system-backed clock abstractions for KoreForge applications.

Overview

KoreForge.Time provides a thin, testable time abstraction layer:

Type Description
ISystemClock Contract for wall-clock and stopwatch time
LocalSystemClock Returns local DateTimeOffset.Now
UtcSystemClock Returns UTC DateTimeOffset.UtcNow
VirtualSystemClock Manually controlled clock for deterministic tests

Installation

dotnet add package KoreForge.Time

Quick Start

// Production
ISystemClock clock = new UtcSystemClock();
var now = clock.UtcNow;

// Tests
var virtual = new VirtualSystemClock(DateTimeOffset.Parse("2024-01-01T00:00:00Z"));
var now = virtual.UtcNow;  // returns exactly 2024-01-01
virtual.Advance(TimeSpan.FromHours(1));

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on KoreForge.Time:

Package Downloads
KoreForge.Web.RestApi.Persistence

REST API persistence helpers and EF Core base classes for KoreForge web applications.

KoreForge.Kafka

Consolidated Kafka client components (AdminClient, Configuration, Consumer, Core, Producer) shipped as one package.

KoreForge.Kafka.Core

Package Description

KoreForge.Scripts.Core

Core services for KoreForge script registry.

KoreForge.Kafka.AdminClient

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2 218 5/3/2026
1.1.0 119 4/30/2026
0.0.11-alpha 84 4/30/2026
0.0.10-alpha 108 4/30/2026
0.0.8-alpha 189 4/26/2026
0.0.5-alpha 99 3/23/2026
0.0.2-alpha 109 3/16/2026