Here you can find the source of addMinutes(m)
/**//from w ww .j a v a2 s . co m * Add minutes to date * * @method addMinutes * @param {Number} m How much minutes to add * @return {Object} The Date instance */ Date.prototype.addMinutes = function (m) { this.setMinutes(this.getMinutes()+m); return this; };
Date.prototype.addMinute = function addMinute () {
this.setMinutes(this.getMinutes() + 1);
this.setSeconds(0);
};
function addMinutes(date, minutes) { return new Date(date.getTime() + minutes*60000); };
Date.prototype.addMinutes = function(hours) { this.setMinutes(this.getMinutes() + hours); return this; };
Date.prototype.addMinutes = function(m) { this.setTime(this.getTime() + (m*60*1000)); return this;
Date.prototype.addMinutes= function(m){ this.setMinutes(this.getMinutes()+m); return this;
Date.prototype.addMinutes = function (mins) { var dat = new Date(0); dat.setMilliseconds(this.getTime() + (mins * 60000)); return dat; };
'use strict'; Date.prototype.addMinutes = function(minutes){ this.setMinutes(this.getMinutes() + minutes); return this; };
Date.prototype.addMinutes = function (minutes) { return new Date(this.getTime() + minutes * 60000);
Date.prototype.addMinutes = function(minutes) { var copiedDate = new Date(this.getTime()); return new Date(copiedDate.getTime() + minutes * 60000); };