new Date().toMillisconds() code example
Example: javascript get Time
var d=new Date();
d.getTime();//I'm in milliseconds, divide by 1000 for seconds
var d=new Date();
d.getTime();//I'm in milliseconds, divide by 1000 for seconds