SystemTime Class
Namespace: PTS
Assembly: PTSframework.dll
Sigleton time accessor for system components.
Syntax
public static class SystemTime
Inheritance
System.Object
SystemTime
Remarks
Default ITimeProvider is set to UtcTimeProvider.
Properties
Now
Gets a System.DateTime object that is set to the current date and time in current ITimeProvider instance.
Declaration
public static DateTime Now { get; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
SetProvider(ITimeProvider)
Injects provider dependency into current execution environment.
Declaration
public static void SetProvider(ITimeProvider provider)
Parameters
Type | Name | Description |
---|---|---|
ITimeProvider | provider | The ITimeProvider for current execution environment. |
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()