I need to get the utc time in secs ( for Wed Nov 07 00:50:28 GMT I need it to return: 1352249428 )
I have this code right now:
current_date = new Date()
var x_timestamp = current_date.getUTCSeconds();
but it’s returning 28.00
Help. Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try calling
UTCoff your date object and dividing that result by 1000.