Nodejs Utililty Methods Minute Add

List of utility methods to do Minute Add

Description

The list of methods to do Minute Add are organized into topic(s).

Method

addMinutes(minutes)
Date.prototype.addMinutes = function(minutes) {
  var copiedDate = new Date(this.getTime());
  return new Date(copiedDate.getTime() + minutes * 60000);
};
addMinutes(minutes)
Date.prototype.addMinutes = function(minutes) {
  var date = this;
  return new Date(date.getTime() + (minutes * 60 * 1000));
};