If you don't want to just do a manual calculation, I'd suggest looking into The FormatDateTime extension in umbraco.library - you should be able to something with that, I'd think.
Essentially you just divide by 60 to get minutes, and by 60 again to get hours. And round the number via floor(). If you want more "fancy" format such as "1 minute and 30 seconds" you could create a template like this one.
Convert seconds to minutes and hours etc?
Quick question, is it possible to convert a number (which is essentially seconds) to minutes and/or hours? And if so, how?
Thank you in advance.
Hi Frederik,
If you don't want to just do a manual calculation, I'd suggest looking into The FormatDateTime extension in umbraco.library - you should be able to something with that, I'd think.
/Chriztian
I looked, but there is nothing about seconds at all which is why i ended up here. But if there is nothing built in i will try and find a workaround.
Essentially you just divide by 60 to get minutes, and by 60 again to get hours. And round the number via floor(). If you want more "fancy" format such as "1 minute and 30 seconds" you could create a template like this one.
is working on a reply...