Hi,
I have a field on my database time_spent_sum.
This field is an elapsed time in seconds.
Ho can I create a total for this field ?
I used this formula to convert to hh:mm:ss :
numberVar dur := datediff("s",{Orders.Order Date}, currentdate); //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
//
Thanks for your help !
I have a field on my database time_spent_sum.
This field is an elapsed time in seconds.
Ho can I create a total for this field ?
I used this formula to convert to hh:mm:ss :
numberVar dur := datediff("s",{Orders.Order Date}, currentdate); //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"
hhmmss
//
Thanks for your help !