mysql - Sum of all durations in a datatable in c# -
I have a problem calculating the amount of total hours from the datatable I have this HHHH: MM: SS Calculate and display as a text box? Do I need to change the query string to other data types? It stores milliseconds in the database. Talk_Time, SUM (cost / 100000) as the form of Total_Calls, SEC_TO_TIME (SUM (cldp_talk_time / 1000)) as the SELECT Select_Name, Extn, COUNT (*) In 'Total_Cost
this is in Datat.
Talk_Time 16:46:11 03:56:20 03:26:55 00:50:09 00:46:48 00:17:18 00:09:55 00:00: 19
The issue I am currently in is that this DD is being displayed in HH: MM: SS and then hits the limit of 99 23:59:59 and Then it crashes. I have tried to change the datetime, but it does not matter.
minsclltxt.Text = callrecdt.Compute ("Summon (Talk_Time)", "") .ostring ();
minsclltxt currently shows as
"6.13: 25: 33"
"157: 25: 33"
Hope this is clear
convert to the time span, calculate the sum of the ticks, then create a new time span with that result.
Comments
Post a Comment