JavaScript Timestamps Get Timestamp in Seconds


Example

To get the timestamp in seconds

Math.floor((new Date().getTime()) / 1000)