@nomiclabs/buidler
Version:
Buidler is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.
15 lines • 515 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
function parseDateString(str) {
return new Date(str);
}
exports.parseDateString = parseDateString;
function dateToTimestampSeconds(date) {
return Math.floor(date.valueOf() / 1000);
}
exports.dateToTimestampSeconds = dateToTimestampSeconds;
function getDifferenceInSeconds(a, b) {
return Math.floor((a.valueOf() - b.valueOf()) / 1000);
}
exports.getDifferenceInSeconds = getDifferenceInSeconds;
//# sourceMappingURL=date.js.map
;