Show / Hide Table of Contents

Class SystemClock

A default clock implementation that wraps the UtcNow and Now properties.

Inheritance
object
SystemClock
Implements
IClock
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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

Implements

IClock

Extension Methods

Utilities.ThrowIfNull<T>(T, string)
In this article
Back to top Generated by DocFX