ISystemClock Interface
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.
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. |