Given a duration of a number of seconds coming from an API as duration_seconds = 86485.
duration_seconds = 86485
(1 day, 0 hours, 1 minute, 1 second)
I was going to use
Maybe you can try this?
moment(duration).format("DD MMM YYYY hh:mm: a")
Though you might have to convert your seconds to milliseconds. This can be done by saying duration * 1000.
duration * 1000
Found from this answer: Moment js convert milliseconds into date and time