Nodejs Minute Add addMinuteaddMinute ()

Here you can find the source of addMinuteaddMinute ()

Method Source Code

/**//from   w  w w.  jav  a  2 s . com
 * Increment minute
 */
Date.prototype.addMinute = function addMinute () {
  this.setMinutes(this.getMinutes() + 1);
  this.setSeconds(0);
};

Related

  1. addMinute()
    Date.prototype.addMinute = function(){
      this.setTime(this.getTime() + (60 * 1000));
    };
    
  2. addMinutes(date, minutes)
    function addMinutes(date, minutes) {
        return new Date(date.getTime() + minutes*60000);
    };
    
  3. addMinutes(hours)
    Date.prototype.addMinutes = function(hours) {
        this.setMinutes(this.getMinutes() + hours);
        return this;
    };
    
  4. addMinutes(m)
    Date.prototype.addMinutes = function(m) {    
       this.setTime(this.getTime() + (m*60*1000)); 
       return this;   
    
  5. addMinutes(m)
    Date.prototype.addMinutes= function(m){
        this.setMinutes(this.getMinutes()+m);
        return this;