Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ColdFusion - Create Time from Number of Minutes

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?

like image 966
shimmoril Avatar asked Apr 13 '12 19:04

shimmoril


1 Answers

<cfset totaltime = "#totalminutes\60#:#numberformat(totalminutes % 60, "00")#:00" />
like image 177
Dan Roberts Avatar answered Sep 21 '22 13:09

Dan Roberts