HttpContext.Timestamp 属性

定义

获取当前 HTTP 请求的初始时间戳。Gets the initial timestamp of the current HTTP request.

public:
 property DateTime Timestamp { DateTime get(); };
public DateTime Timestamp { get; }
member this.Timestamp : DateTime
Public ReadOnly Property Timestamp As DateTime

属性值

当前 HTTP 请求的时间戳。The timestamp of the current HTTP request.

注解

Timestamp 属性返回的时间戳是服务器的本地时间,在 HttpContext 对象的实例化期间进行设置。The timestamp returned from the Timestamp property is the local time of the server and is set during the instantiation of the HttpContext object. 本地时间等于 UTC 时间加上 UTC 偏移量。The local time is equal to the UTC time plus the UTC offset.

适用于