Javascript Date olderThan(minutes)

Description

Javascript Date olderThan(minutes)


Date.prototype.olderThan = function(minutes) {
  var now = new Date();
  return now.getTime() - this.getTime() > minutes*60*1000
};



PreviousNext

Related