GeolocationPosition.timestamp
安全なコンテキスト用: この機能は一部またはすべての対応しているブラウザーにおいて、安全なコンテキスト (HTTPS) でのみ利用できます。
GeolocationPosition.timestamp は読み取り専用のプロパティで、 DOMTimeStamp オブジェクト形式で、所属する GeolocationPosition オブジェクトが生成された日時を表す値を返します。精度はミリ秒です。
構文
js
var timestamp = geolocationPositionInstance.timestamp
値
DOMTimeStamp オブジェクトのインスタンスです。
仕様書
| Specification |
|---|
| Geolocation API # timestamp-attribute |
ブラウザーの互換性
BCD tables only load in the browser