Forum Documentation Showcase Pricing Learn more

Least onerous method seconds to hh:mm:ss


I’m trying to find the optimal method of converting bubble data… in this case seconds to minutes and seconds in a RG.

as it stands im using moment.js and then calling this

1820 is dynamic btw

var seconds = 1820;
var duration = moment.duration(seconds, ‘seconds’);
var formatted = duration.format(“hh:mm:ss”);

using toolbox to get this back into bubble

anyone suggest a better way?