koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
14 lines (13 loc) • 349 B
JavaScript
"use client";
const n = (t = 0) => {
const e = new Intl.NumberFormat(void 0, { minimumIntegerDigits: 2 }).format(
Math.floor(t / 60)
), m = new Intl.NumberFormat(void 0, { minimumIntegerDigits: 2 }).format(
Math.round(t % 60)
);
return `${e}:${m}`;
};
export {
n as getFormattedTime
};
//# sourceMappingURL=getFormattedTime.js.map