--- title: Position.timestamp slug: Web/API/GeolocationPosition/timestamp translation_of: Web/API/GeolocationPosition/timestamp ---
{{APIRef("Geolocation API")}}

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

語法

coord = position.timestamp

規格

Specification Status Comment
{{SpecName('Geolocation', '#timestamp', 'Position.timestamp')}} {{Spec2('Geolocation')}} Initial definition

瀏覽器的相容性

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 5 {{CompatGeckoDesktop("1.9.1")}} 9 10.60
{{CompatNo}} 15.0
16.0
5
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatUnknown}} {{CompatGeckoMobile("4")}} {{CompatUnknown}} 10.60 {{CompatUnknown}}

請參考