christinetjx
Technical User
I would like to display the amt of time passed between a call being opened, then closed.
I would like this displayed in days, hrs, minutes: (i.e.,
2 days, 3 hrs 10 mins)
i found the (wonderful!) formula posted in faq767-3543, so i'm halfway there; i just need help fine-tuning. Below is that formula with my modifications. Can someone pls help me edit this so i can see the days hrs & minutes. As always, thank you so much for your help.
Christine
The formula I am using:
numberVar dur := datediff("s",{probsummarym1.open_time}, {probsummarym1.close_time}); //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
I would like this displayed in days, hrs, minutes: (i.e.,
2 days, 3 hrs 10 mins)
i found the (wonderful!) formula posted in faq767-3543, so i'm halfway there; i just need help fine-tuning. Below is that formula with my modifications. Can someone pls help me edit this so i can see the days hrs & minutes. As always, thank you so much for your help.
Christine
The formula I am using:
numberVar dur := datediff("s",{probsummarym1.open_time}, {probsummarym1.close_time}); //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