Here you can find the source of addHours(h)
Date.prototype.addHours= function(h){ this.setHours(this.getHours()+h);//from ww w .j a va 2 s .co m return this; } var d = new Date(); //console.log(d); console.log(d.addHours(24)); //console.log(d);
Date.prototype.addHalfHour = function() {
this.setTime(this.getTime() + 30 * 60 * 1000);
};
Date.prototype.addHour = function(){
this.setTime(this.getTime() + (60 * 60 * 1000));
};
Date.prototype.addHours= function(h){ this.setHours(this.getHours()+h); return this;
Date.prototype.addHours = function(h) { this.setHours(this.getHours() + h); return this; Date.prototype.addSeconds = function(s) { this.setSeconds(this.getSeconds() + s); return this;
Date.prototype.addHours = function(h) { this.setTime(this.getTime() + (h*60*60*1000)); return this;
Date.prototype.addHours = function (h) { this.setHours(this.getHours() + h); return this; Date.prototype.addDays = function (d) { var month, year, day; month = this.getMonth(); year = this.getFullYear(); day = this.getDate(); ...
Date.prototype.addHours = function (h) { this.setHours(this.getHours()+h); return this; };
Date.prototype.addHours= function(h){ this.setHours(this.getHours()+h); return this; Date.prototype.removeHours= function(h){ this.setHours(this.getHours()-h); return this; Date.prototype.addMinutes = function (m) { ...
Date.prototype.addHours = function(h) {
this.setHours(this.getHours() + h);
};