aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/geolocationposition/timestamp/index.md
blob: 460fb29213c535a5a5950d32c014ba71e84022da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: GeolocationPosition.timestamp
slug: Web/API/GeolocationPosition/timestamp
translation_of: Web/API/GeolocationPosition/timestamp
---
<div>{{securecontext_header}}{{APIRef("Geolocation API")}}</div>

<p>La propriété en lecture seule <code><strong>GeolocationPosition.timestamp</strong></code> retourne un objet {{domxref("DOMTimeStamp")}} représentant la date et l'heure de la création de l'objet {{domxref("GeolocationPosition")}} auquel il appartient. La précision est de l'ordre de la milliseconde.</p>

<h2 id="Syntaxe">Syntaxe</h2>

<pre>var timestamp = geolocationPositionInstance.timestamp
</pre>

<h3 id="Valeur">Valeur</h3>

<p>Un objet {{domxref("DOMTimeStamp")}}.</p>

<h2 id="Spécification">Spécification</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Spécification</th>
   <th scope="col">Statut</th>
   <th scope="col">Commentaire</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('Geolocation', '#dom-geolocationposition-timestamp', 'GeolocationPosition.timestamp')}}</td>
   <td>{{Spec2('Geolocation')}}</td>
   <td>Définition initiale.</td>
  </tr>
 </tbody>
</table>

<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>



<p>{{Compat("api.GeolocationPosition.timestamp")}}</p>

<h2 id="Voir_aussi">Voir aussi</h2>

<ul>
 <li><a href="/fr/docs/Web/API/Geolocation_API/Using">Utiliser l'API de Geolocation</a></li>
 <li>{{domxref("GeolocationPosition")}}</li>
</ul>