function getCurrentTime() {
var date = new Date();
return (date.getTime() - date.getMilliseconds()) / 1000;
}
source: http://www.esqsoft.com/javascript_examples/date-to-epoch.htm
reference: https://en.wikipedia.org/wiki/Unix_time
function getCurrentTime() {
var date = new Date();
return (date.getTime() - date.getMilliseconds()) / 1000;
}
source: http://www.esqsoft.com/javascript_examples/date-to-epoch.htm
reference: https://en.wikipedia.org/wiki/Unix_time