Class SystemClock (3.2.0)

public sealed class SystemClock : IClock

A singleton implementation of IClock which delegates to the BCL UtcNow property.

Inheritance

Object > SystemClock

Implements

IClock

Namespace

Google.Api.Gax

Assembly

Google.Api.Gax.dll

Properties

Instance

public static IClock Instance { get; }

Retrieves the singleton instance of this type.

Property Value
TypeDescription
IClock

Methods

GetCurrentDateTimeUtc()

public DateTime GetCurrentDateTimeUtc()

Returns the current date and time in UTC, using UtcNow.

Returns
TypeDescription
DateTime

The current date and time in UTC.