XML DOM timeStamp ఇవెంట్ అత్యాచారం

నిర్వచనం మరియు ఉపయోగం

timeStamp ఇవెంట్ అత్యాచారం ఒక టైమ్ స్టాప్ తిరిగి ఇస్తుంది. ఇది జరిగిన తేదీ మరియు సమయాన్ని సూచిస్తుంది (epoch నుండి మిలీసెకండ్లు గా).

epoch ఒక ఇవెంట్ రిఫరెన్స్ పాయింట్ ఉంది. ఇక్కడ, ఇది క్లయింట్ స్టార్ట్ సమయం ఉంది.

కొన్ని సిస్టమ్స్ ఈ సమాచారాన్ని అందించవు, కాబట్టి timeStamp అంశం అన్ని సిస్టమ్/ఇవెంట్స్ కు లభించదు.

సంకేతం

event.timeStamp

ఉదాహరణ

సిస్టమ్ స్టార్ట్ నుండి ప్రారంభమయ్యే ఇవెంట్ టైమ్ స్టాప్ పొందండి ఈ ఉదాహరణలో ఉంది:

<html>
<head>
<script type="text/javascript">
function showTimestamp(event)
  {
  var minutes = 1000*60
  x=event.timeStamp;
  alert(x/minutes)
  }
</script>
</head>
<body onmousedown="showTimestamp(event)">
<p>Click in the document. An alert 
box will alert the timestamp.</p>
</body>
</html>

TIY

timestamp ఇవెంట్
సిస్టమ్ స్టార్ట్ నుండి ఇప్పటివరకు నిమిషాలను తిరిగి పొందండి (IE బ్రౌజర్ మద్దతు లేదు).