Update http.js

This commit is contained in:
Namhyeon Go 2022-06-09 11:35:47 +09:00 committed by GitHub
parent 5e83f7180e
commit ed991d81ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,9 @@ var HTTPObject = function(engine) {
"unixnowms": function(diff) { // e.g. {unixnowms -300000} (milliseconds)
var t = parseInt(diff);
return Math.floor(new Date().getTime()) - t;
},
"isotime": function() {
return new Date().toISOString()
}
};
this.connectTimeout = 0;