find the number of second S in X hours , Y minutes and Z second
Answers
Answered by
1
Answer:
The simplest solution , is this:
import { formatDuration, intervalToDuration } from 'date-fns';
function humanDuration(time: number) {
return formatDuration(intervalToDuration({start: 0, end: time * 1000}));
};
humanDuration(463441); // 5 days 8 hours 44 minutes 1 second
Answered by
1
Answer:
no. of seconds = XYZ
Step-by-step explanation:
Mark as brain list and please follow me
Similar questions