From 5681852902ec13c08c822ea250a57ce5325e3fd3 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Fri, 6 May 2022 17:03:28 +0900 Subject: [PATCH] Update http.js --- lib/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http.js b/lib/http.js index 842fb55..ce89589 100644 --- a/lib/http.js +++ b/lib/http.js @@ -33,11 +33,11 @@ var HTTPObject = function(engine) { "base64json": function(v) { return BASE64.encode(JSON.stringify(v)); }, - "unixnow": function(diff) { + "unixnow": function(diff) { // e.g. {unixtime -300} (seconds) var t = parseInt(diff); return Math.floor(new Date().getTime() / 1000) - t; }, - "unixnowms": function(diff) { + "unixnowms": function(diff) { // e.g. {unixtimems -300000} (milliseconds) var t = parseInt(diff); return new Date().getTime() - t; }