Solución
solution.tsTypeScript
export function secondsToTime(seconds: number): string {
const now = new Date();
now.setTime(0)
now.setSeconds(seconds);
const hours = now.getHours().toString().padStart(2,'0')
const mins = now.getMinutes().toString().padStart(2,'0')
const secs = now.getSeconds().toString().padStart(2,'0')
return `${hours}:${mins}:${secs}`
}0respuestas