react-tesna-utils
Version:
A versatile utility library featuring optimized functions for data manipulation, clipboard handling, text truncation, comparison, validation, and more. Designed for modern JavaScript and TypeScript projects with efficient and reusable solutions.
10 lines (9 loc) • 369 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.fn_deadline = void 0;
const fn_deadline = (time) => {
const [hours, minutes, seconds] = time.split(':').map(parseFloat);
const totalMilliseconds = ((hours * 60 + minutes) * 60 + seconds) * 1000;
return Date.now() + totalMilliseconds;
};
exports.fn_deadline = fn_deadline;
;