Date.prototype.format=function(t){var e={"M+":this.getMonth()+1,"d+":this.getDate(),"H+":this.getHours(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var i in e)new RegExp("("+i+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?e[i]:("00"+e[i]).substr((""+e[i]).length)));return t},Date.prototype.addSecond=function(t){return this.setTime(this.getTime()+1e3*t),this},Date.prototype.addMinute=function(t){return this.setTime(this.getTime()+60*t*1e3),this},Date.prototype.addHour=function(t){return this.setTime(this.getTime()+3600*t*1e3),this},Date.prototype.addDay=function(t){return this.setTime(this.getTime()+3600*t*1e3*24),this},Date.prototype.toDatetime=function(){return this.format("yyyy-MM-dd HH:mm:ss")},module.exports={};