[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; }
Gets aDateTimeobject that is set to the current date and time on this computer,
expressed as the local time.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eIClock\u003c/code\u003e interface serves as a clock wrapper for retrieving the current time.\u003c/p\u003e\n"],["\u003cp\u003eIt provides access to the current date and time in both local time via the \u003ccode\u003eNow\u003c/code\u003e property and UTC time via the \u003ccode\u003eUtcNow\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNow\u003c/code\u003e property, which represents local time, is marked as obsolete and suggests using \u003ccode\u003eUtcNow\u003c/code\u003e followed by \u003ccode\u003eToLocalTime\u003c/code\u003e instead.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is 1.69.0, and older versions such as 1.68.0, 1.60.0, 1.59.0, 1.55.0, and 1.50.0 are also accessible.\u003c/p\u003e\n"]]],[],null,["# Interface IClock (1.69.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.69.0 (latest)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.IClock)\n- [1.68.0](/dotnet/docs/reference/Google.Apis/1.68.0/Google.Apis.Util.IClock)\n- [1.60.0](/dotnet/docs/reference/Google.Apis/1.60.0/Google.Apis.Util.IClock)\n- [1.59.0](/dotnet/docs/reference/Google.Apis/1.59.0/Google.Apis.Util.IClock)\n- [1.55.0](/dotnet/docs/reference/Google.Apis/1.55.0/Google.Apis.Util.IClock)\n- [1.50.0](/dotnet/docs/reference/Google.Apis/1.50.0/Google.Apis.Util.IClock) \n\n public interface IClock\n\nClock wrapper for getting the current time.\n\nNamespace\n---------\n\n[Google.Apis.Util](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util)\n\nAssembly\n--------\n\nGoogle.Apis.Core.dll\n\nProperties\n----------\n\n### Now\n\n [Obsolete(\"System local time is almost always inappropriate to use. If you really need this, call UtcNow and then call ToLocalTime on the result\")]\n DateTime Now { get; }\n\nGets a [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) object that is set to the current date and time on this computer,\nexpressed as the local time.\n\n### UtcNow\n\n DateTime UtcNow { get; }\n\nGets a [DateTime](https://learn.microsoft.com/dotnet/api/system.datetime) object that is set to the current date and time on this computer,\nexpressed as UTC time.\n\nExtension Method\n----------------\n\n[Utilities.ThrowIfNull\\\u003cT\\\u003e(T, string)](/dotnet/docs/reference/Google.Apis/latest/Google.Apis.Util.Utilities#Google_Apis_Util_Utilities_ThrowIfNull__1___0_System_String_)"]]