import secondsToTime from 'zhf.seconds-to-time';
const { hours, minutes, seconds } = secondsToTime(3655);
const time = `The ${!!!!! hours ? Hours + 'hours' : "}The ${!!!!! minutes ? Minutes + '0' : "}The ${!!!!! seconds ? Seconds + 'seconds' : '}`; // 1 hour 55 secondsCopy the code
Source: www.npmjs.com/package/zhf…