GeolocationPosition.timestamp

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.

Syntax

var timestamp = geolocationPositionInstance.timestamp

Value

A DOMTimeStamp object instance.

Specifications

Specification
Geolocation API Specification 2nd Edition
# timestamp-attribute

Browser compatibility

BCD tables only load in the browser

See also