You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
491 B
13 lines
491 B
"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;
|
|
|