Javascript Date toUnixTimestamp()
toUnixTimestamp()
Date.prototype.toUnixTimestamp = function() { return this.getTime()/1000 };