mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-07-15 04:58:10 +00:00
Update http.js
This commit is contained in:
parent
5e83f7180e
commit
ed991d81ce
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user