1
This commit is contained in:
parent
786102288f
commit
59b3ef222d
5
utils.js
5
utils.js
@ -65,6 +65,10 @@ function isOnlineEnv() {
|
|||||||
return !serverEnv;
|
return !serverEnv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTickCount() {
|
||||||
|
return Math.floor((new Date()).getTime() / 1);
|
||||||
|
}
|
||||||
|
|
||||||
function getUtcTime() {
|
function getUtcTime() {
|
||||||
return Math.floor((new Date()).getTime() / 1000);
|
return Math.floor((new Date()).getTime() / 1000);
|
||||||
}
|
}
|
||||||
@ -245,6 +249,7 @@ exports.sleep = sleep;
|
|||||||
exports.emptyReplace = emptyReplace;
|
exports.emptyReplace = emptyReplace;
|
||||||
exports.throwError = throwError;
|
exports.throwError = throwError;
|
||||||
exports.isOnlineEnv = isOnlineEnv;
|
exports.isOnlineEnv = isOnlineEnv;
|
||||||
|
exports.getTickCount = getTickCount;
|
||||||
exports.getUtcTime = getUtcTime;
|
exports.getUtcTime = getUtcTime;
|
||||||
exports.formatDate = formatDate;
|
exports.formatDate = formatDate;
|
||||||
exports.pad = pad;
|
exports.pad = pad;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user