ColdFusion - Create Time from Number of Minutes

coldfusion, formatting, time

Solution

<cfset totaltime = "#totalminutes\60#:#numberformat(totalminutes % 60, "00")#:00" />

Problem

I have the number of minutes (ie. 25, 120, 300, etc) entered by the user, and I need to display it in a h:mm:ss format. Are there any built-in ColdFusion functions that can do this for me, or does anyone have any suggestions about the easiest way to build out the string?

Original source