Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Interface ICurrentTimeProvider

Interface for providing current time. For example: server's time, browser's local time

Namespace: EPiServer.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public interface ICurrentTimeProvider

Methods

GetNow(HttpRequest)

Gets the current time.

Declaration
DateTime GetNow(HttpRequest request)
Parameters
Type Name Description
Microsoft.AspNetCore.Http.HttpRequest request

Current http request.

Returns
Type Description
System.DateTime

Current time

Extension Methods