Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

timeStamp event property

timeStamp event property

Event Object Reference Event Object


Definition and Usage

The timeStamp event property returns a timestamp indicating the date and time when the event occurred (the number of milliseconds since the epoch).

The epoch is a reference point for time. Here, it is the time when the client started.

Not all systems provide this information, so the timeStamp property is not available for all systems/events.

Syntax

event

.timeStamp

 


Example

Example

The following example gets the timestamp starting from system startup:

Runoob Tutorial(runoob.com)

Click this paragraph. A warning box will pop up containing the timestamp.

Try it »


Event Object Reference Event Object