A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Interface ITimeProvider

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Namespace: EPiServer.Framework
Assembly: EPiServer.Framework.dll
Version: 11.20.7
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