Position.timestamp

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Position.timestamp 是一個唯讀的 DOMTimeStamp 物件, 此物件代表建立 Position 物件的日期和時間,精確度為毫秒。

語法

coord = position.timestamp

規格

Specification
Geolocation
# timestamp-attribute

瀏覽器的相容性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
timestamp

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

請參考