Back to Content

Sensor: timestamp property

files/en-us/web/api/sensor/timestamp/index.md

latest415 B
Original Source

{{securecontext_header}}{{APIRef("Sensor API")}}

The timestamp read-only property of the {{domxref("Sensor")}} interface returns the timestamp of the latest sensor reading.

Because {{domxref('Sensor')}} is a base class, timestamp may only be read from one of its derived classes.

Value

A {{domxref("DOMHighResTimeStamp")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}