Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

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.


var timestamp = geolocationPositionInstance.timestamp


A DOMTimeStamp object instance.


Specification Status Comment
Geolocation API
The definition of 'GeolocationPosition.timestamp' in that specification.
Recommendation Initial definition

Browser compatibility

No compatibility data found. Please contribute data for "api.GeolocationPosition.timestamp" (depth: 1) to the MDN compatibility data repository.

See also