Delen via


SystemClock Class

Definition

Caution

Use TimeProvider instead.

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

public ref class SystemClock : Microsoft::AspNetCore::Authentication::ISystemClock
public class SystemClock : Microsoft.AspNetCore.Authentication.ISystemClock
[System.Obsolete("Use TimeProvider instead.")]
public class SystemClock : Microsoft.AspNetCore.Authentication.ISystemClock
type SystemClock = class
    interface ISystemClock
[<System.Obsolete("Use TimeProvider instead.")>]
type SystemClock = class
    interface ISystemClock
Public Class SystemClock
Implements 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