human-readable durations: implement stub
human-readable durations: implement stub: a task in smol-software-harbor (Harbor dataset). Implement humanize(seconds) in src/duration.js as its comment describes: fractions of a second are dropped and the result shows the two largest units, e.g. 45s , 3m 07s , 2h 05m , 3d 4h (minutes and seconds…
The task
Implement `humanize(seconds)` in `src/duration.js` as its comment describes: fractions of a second are dropped and the result shows the two largest units, e.g. `45s`, `3m 07s`, `2h 05m`, `3d 4h` (minutes and seconds are zero-padded when they are the second unit, hours are not); 0 gives `0s`. Run `node --test…
Part of efederici/smol-software-harbor.