Show / Hide Table of Contents

Interface IClock

Clock wrapper for getting the current time.

Namespace: Google.Apis.Util
Assembly: Google.Apis.Core.dll
Syntax
public interface IClock

Properties

Now

Gets a System.DateTime object that is set to the current date and time on this computer, expressed as the local time.

Declaration
[Obsolete("System local time is almost always inappropriate to use. If you really need this, call UtcNow and then call ToLocalTime on the result")]
DateTime Now { get; }
Property Value
Type Description
System.DateTime

UtcNow

Gets a System.DateTime object that is set to the current date and time on this computer, expressed as UTC time.

Declaration
DateTime UtcNow { get; }
Property Value
Type Description
System.DateTime

Extension Methods

Utilities.ThrowIfNull<T>(T, String)
In This Article
Back to top