Something went wrong. Try again.
Mirror — see github.com/blacksky-algorithms/blacksky.community
Something went wrong. Try again.
1234567891011121314151617/** * Formats a duration in seconds as minutes and seconds for video controls and * related UI. */export function formatTime(time: number) { if (isNaN(time)) { return '--' }
time = Math.round(time)
const minutes = Math.floor(time / 60) const seconds = String(time % 60).padStart(2, '0')
return `${minutes}:${seconds}`}