I am using the following function to get the Time using javascript:
function timeMil(){ var date = new Date(); var timeMil = date.getTime(); ret
You could divide by 1000 and use Math.floor() on JavaScript.
Math.floor()