I am using crystal 10, HP Service Desk (Oracle 9/HPUX), and an Oracle ODBC driver. I found the following formula in FAQ and another post and it worked great, but the output is text and I need it to be the actual hh:mm:ss, so that I can average the time in Crystal or Excel. We are trying to track the average time a service call is created to when the call was accepted by another team to fix the problem. What would I need to change in order to do this? I have spent hours trying to figure this one out. Any help would be fabulous!
numberVar dur := datediff("s",{V_SERVICECALL.CREATED}, {V_SERVICECALL.ACTUALSTART}); //get the seconds between 2 dates
numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;
hrs := Truncate(Truncate(dur/60)/60);
min := Remainder(Truncate(dur/60),60);
sec := Remainder(dur,60);
hhmmss := totext(hrs, "0") + ":" + totext(min, "00") + ":" + totext(sec, "00");
hhmmss
numberVar dur := datediff("s",{V_SERVICECALL.CREATED}, {V_SERVICECALL.ACTUALSTART}); //get the seconds between 2 dates
numberVar hrs;
numberVar min;
numberVar sec;
stringVar hhmmss;
hrs := Truncate(Truncate(dur/60)/60);
min := Remainder(Truncate(dur/60),60);
sec := Remainder(dur,60);
hhmmss := totext(hrs, "0") + ":" + totext(min, "00") + ":" + totext(sec, "00");
hhmmss