SystemClock Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |