filepond
Version:
FilePond, where files go to stretch their bits.
18 lines (17 loc) • 464 B
JavaScript
/*!
* FilePond v5.0.2
* Copyright (c) 2017-2026 Pqina B.V.
* Released under the MIT License
* https://filepond.com
*/
function u(n) {
const t = Math.round(n), r = Math.floor(t / 3600), o = Math.floor((t - r * 3600) / 60), e = Math.round(t - r * 3600 - o * 60);
return [r, o, e];
}
function a(n) {
return u(n).filter((t, r) => r === 0 ? t > 0 : !0).map((t, r) => r > 0 ? `${t}`.padStart(2, "0") : t).join(":");
}
export {
a as toTime,
u as toTimeParts
};