You are here: irt.org | FAQ | ColdFusion | Q3001 [ previous next ]
There are no predefined functions for this, but see if this sets you in the right direction.
<cfset totalminutes="75"> <!--- convert to hours/minutes ---> <cfset hours = int(totalminutes\60)> <cfset minutes = int(totalminutes mod 60)> <cfoutput>#totalminutes# minutes = #hours# hr #minutes# min</cfoutput><br> <!--- convert back to minutes ---> <cfset newtotalminutes = (hours * 60) + minutes> <cfoutput>Total minutes = #newtotalminutes#</cfoutput>