@ton3/liteclient
Version:
TON Blockchain LiteClient
12 lines • 434 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.currentTime = void 0;
const utils_1 = require("../../utils");
exports.currentTime = {
tag: (0, utils_1.crc32)('liteServer.currentTime now:int = liteServer.CurrentTime'),
read: (dataReader) => {
const now = dataReader.readUint32LE();
return new Date(now * 1000).toISOString();
},
};
//# sourceMappingURL=currentTime.js.map