cara mendapatkan detik di timstamps js

var seconds = new Date().getTime() / 1000;
Squirrel Glider