ISystemClock Interface

Definition

Caution

Use TimeProvider instead.

Abstracts the system clock to facilitate testing.

public interface class ISystemClock
public interface ISystemClock
[System.Obsolete("Use TimeProvider instead.")]
public interface ISystemClock
type ISystemClock = interface
[<System.Obsolete("Use TimeProvider instead.")>]
type ISystemClock = interface
Public Interface ISystemClock
Derived
Attributes

Properties

UtcNow

Retrieves the current system time in UTC.

Applies to