Use timespan to add intervals over 24 hours
<p>I've an app designed to calculate how many hours employees work. I have to show total for every week. To do it, I loop on every day, and every day I use Add() method. At the end I write hours and minutes on a label. </p>

<pre><code>foreach (DataRow day in days.Rows)
{
    TimeSpan tsToAdd = new TimeSpan((int)day["hours"], (int)day["minutues"],0);
    ts = ts.Add(tsToAdd);
}
label.text= ts.Hours.ToString("00") + ":" + ts.Minutes.ToString("00");
</code></pre>

<p>But, when ts.hours exceeds 24, it restart from 0. For example, 25 hours and 30 minutes became 1 hour and 30 minutes.
I try to use TotalHour and TotalMinutes, but it's not what I want.</p>

<p>How to show, for example, "30:20"?</p>

<p>Thx</p>