London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Interface ITimeProvider

Namespace: EPiServer.Framework
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public interface ITimeProvider

Properties

Now

Gets the current local time.

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

RequestTime

Gets the time of the current request.

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

UtcNow

Gets the current time in universal format.

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

Extension Methods