ISystemClock Interface¶
Abstracts the system clock to facilitate testing.
- Namespace
Microsoft.Extensions.Internal
- Assemblies
- Microsoft.Extensions.Caching.Abstractions
Properties¶
-
Microsoft.Extensions.Internal.ISystemClock.
UtcNow
¶ Retrieves the current system time in UTC.
Return type: System.DateTimeOffset DateTimeOffset UtcNow { get; }
-