SystemClock Class

Definition

Caution

Use TimeProvider instead.

Provides access to the normal system clock with precision in seconds.

C#
public class SystemClock : Microsoft.AspNetCore.Authentication.ISystemClock
C#
[System.Obsolete("Use TimeProvider instead.")]
public class SystemClock : Microsoft.AspNetCore.Authentication.ISystemClock
Inheritance
SystemClock
Attributes
Implements

Constructors

SystemClock()

Creates a new SystemClock that reads the current system time.

Properties

UtcNow

Retrieves the current system time in UTC.

Applies to

Product Versions (Obsolete)
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0 (8.0, 9.0)