IClock Members
The IClock type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
Equals(System.Object) | (Inherited from Object.) |
|
|
Finalize | (Inherited from Object.) |
|
|
GetHashCode | (Inherited from Object.) |
|
|
GetType | (Inherited from Object.) |
|
|
MemberwiseClone | (Inherited from Object.) |
|
|
ToString | (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
|
|
Instance |
Gets or sets the current instance of IClock, enabling the ability to simulate time in unit tests or time-sensitive integration tests.
Note: This property is not available in .NET Standard 2.0.
|
|
|
Now |
Gets the current local date and time.
|
|
|
UtcNow |
Gets the current UTC date and time.
|

