Created
May 3, 2017 00:39
-
-
Save aalonzolu/4de97f17300af0df9eb97490dd855442 to your computer and use it in GitHub Desktop.
GT time javascript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nowDateGT = function (){ | |
Date.prototype.addHours = function(h) { | |
this.setTime(this.getTime() + (h*60*60*1000)); | |
return this;} | |
now = new Date(); | |
return now.addHours(-6); | |
} | |
console.log(nowDateGT()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment