imstillatwork
IS-IT--Management
here is what i have...
each row has a start and end date,
I use datediff to find the minutes between each date.
I add all the minutes (totaltime) and divide by total rows(issuecount) to get the average time in minutes. Then break it down into days, hours, minutes...
like this:
the problem is that the MOD does not like it if the average time from datediff has a decimal...
what is the most accurat way to fix this?
thanks
kevin
each row has a start and end date,
I use datediff to find the minutes between each date.
I add all the minutes (totaltime) and divide by total rows(issuecount) to get the average time in minutes. Then break it down into days, hours, minutes...
like this:
Code:
<cfset minute=evaluate(totaltime/issuecount)>
<cfset hour=evaluate((minute -(minute MOD 60))/60)>
<cfset day=evaluate((minute -(minute MOD 1440))/1440)>
#day# day, #hour# hours, #evaluate(minute MOD 60)# mins <br>
the problem is that the MOD does not like it if the average time from datediff has a decimal...
what is the most accurat way to fix this?
thanks
kevin