Class SystemClock (4.8.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
Type Description
IClock

Methods

GetCurrentDateTimeUtc()

public DateTime GetCurrentDateTimeUtc()

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

Returns
Type Description
DateTime

The current date and time in UTC.