Get UTC Seconds
<html> <body> <button onclick="var myDate = new Date(); alert(myDate.getUTCSeconds());">Date: getUTCSeconds</button> </body> </html>