GeolocationPosition.timestamp

安全上下文

此项功能仅在安全上下文(HTTPS), 一些 支持的浏览器.

The GeolocationPosition.timestamp read-only property returns a DOMTimeStamp object, represents the date and the time of the creation of the GeolocationPosition object it belongs to. The precision is to the millisecond.

Syntax

var timestamp = geolocationPositionInstance.timestamp

Value

A DOMTimeStamp object instance.

Specifications

Specification Status Comment
Geolocation API
GeolocationPosition.timestamp
Recommendation Initial definition

Browser compatibility

BCD tables only load in the browser

See also