I am using the following function to get the Time using javascript:
function timeMil(){ var date = new Date(); var timeMil = date.getTime(); ret
I think you just have to divide it by 1000 milliseconds and you'll get time in seconds
Math.floor(date.getTime()/1000)