Table of Contents

Interface ISystemTimeProvider

Namespace
WorkflowForge.Abstractions
Assembly
WorkflowForge.dll

Provides an abstraction for system time operations to enable testability and time mocking. This is the single source of truth for all time-related operations in WorkflowForge.

public interface ISystemTimeProvider

Properties

Now

Gets the current local date and time.

DateTimeOffset Now { get; }

Property Value

DateTimeOffset

Today

Gets the current local date with the time component set to midnight.

DateTimeOffset Today { get; }

Property Value

DateTimeOffset

UtcNow

Gets the current date and time in Coordinated Universal Time (UTC).

DateTimeOffset UtcNow { get; }

Property Value

DateTimeOffset