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