@speckle/shared
Version:
Shared code between various Speckle JS packages
20 lines • 526 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TIME_MS = exports.TIME = void 0;
const _lodash_1 = require("#lodash");
/*
* Time with seconds as the base unit
*/
exports.TIME = {
second: 1,
minute: 60,
hour: 60 * 60,
day: 24 * 60 * 60,
week: 7 * 24 * 60 * 60,
month: 28 * 24 * 60 * 60
};
/**
* Time with milliseconds as the base unit
*/
exports.TIME_MS = (0, _lodash_1.mapValues)(exports.TIME, (value) => value * 1000);
//# sourceMappingURL=timeConstants.js.map