Javascript Date addMinutes(minutes)

Description

Javascript Date addMinutes(minutes)


'use strict';/*  w  w w . j  a v a  2 s.  co m*/

Date.prototype.addMinutes = function(minutes){
    this.setMinutes(this.getMinutes() + minutes);
    return this;
};

Javascript Date addMinutes(minutes)

Date.prototype.addMinutes = function (minutes) {
    return new Date(this.getTime() + minutes * 60000);
}

Javascript Date addMinutes(minutes)

Date.prototype.addMinutes = function(minutes) {
  this.setMinutes(this.getMinutes() + minutes);
 return this;/*from w  w  w .j a  va 2 s  .co m*/
};

Javascript Date addMinutes( minutes )

Date.prototype.addMinutes = function ( minutes ) {
  this.setMinutes( this.getMinutes() + minutes )
};



PreviousNext

Related