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