Javascript Date subtractHours(h)

Description

Javascript Date subtractHours(h)


'use strict';/*from w w w  .  j av a2  s  .c  om*/

Date.prototype.subtractHours = function(h) {
   this.setTime(this.getTime() - (h*60*60*1000));
   return this;
};



PreviousNext

Related