123
This commit is contained in:
13
node_modules/@redis/client/dist/lib/commands/TIME.js
generated
vendored
Normal file
13
node_modules/@redis/client/dist/lib/commands/TIME.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.transformReply = exports.transformArguments = void 0;
|
||||
function transformArguments() {
|
||||
return ['TIME'];
|
||||
}
|
||||
exports.transformArguments = transformArguments;
|
||||
function transformReply(reply) {
|
||||
const seconds = Number(reply[0]), microseconds = Number(reply[1]), d = new Date(seconds * 1000 + microseconds / 1000);
|
||||
d.microseconds = microseconds;
|
||||
return d;
|
||||
}
|
||||
exports.transformReply = transformReply;
|
||||
Reference in New Issue
Block a user