Timestamp to Unixtimestamp
Javascript Date object to Unixtimestamp
function getUnixTimestamp ( $date ) {
var date = new Date();
if( $date!== null && $date instanceof Date ) {
date = $date
}
return Math.round( date.getTime()/1000 );
}
var unixTime = getUnixTimestamp();
Language: JavaScript | User: Lord-Crash | Created: Aug 31, 2014 | Tags: Date unixtime timestamp unixtimestamp