public class SystemClock : IClockImplements
IClockNamespace
Google.Apis.UtilAssembly
Google.Apis.Core.dll
Constructors
SystemClock()
protected SystemClock()Constructs a new system clock.
Fields
Default
public static readonly IClock DefaultThe default instance.
| Field Value | |
|---|---|
| Type | Description |
IClock |
|
Properties
Now
public DateTime Now { get; }Gets a DateTime object that is set to the current date and time on this computer, expressed as the local time.
| Property Value | |
|---|---|
| Type | Description |
DateTime |
|
UtcNow
public DateTime UtcNow { get; }Gets a DateTime object that is set to the current date and time on this computer, expressed as UTC time.
| Property Value | |
|---|---|
| Type | Description |
DateTime |
|