Nodejs Hour Add addHalfHour()

Here you can find the source of addHalfHour()

Method Source Code

Date.prototype.addHalfHour = function() {
   this.setTime(this.getTime() + 30 * 60 * 1000);
};

Related

  1. addHour()
    Date.prototype.addHour = function(){
      this.setTime(this.getTime() + (60 * 60 * 1000));
    };
    
  2. addHours(h)
    Date.prototype.addHours= function(h){
        this.setHours(this.getHours()+h);
        return this;
    
  3. addHours(h)
    Date.prototype.addHours = function(h) {
        this.setHours(this.getHours() + h);
        return this;
    Date.prototype.addSeconds = function(s) {
      this.setSeconds(this.getSeconds() + s);
      return this;
    
  4. addHours(h)
    Date.prototype.addHours = function(h) {    
       this.setTime(this.getTime() + (h*60*60*1000)); 
       return this;