hh:mm (時と分) 形式の文字列のデータを合計するメソッドが必要です
0:15 + 0:15 = 0:30
文字列を s に変換してからTimeSpan
、メソッドを呼び出します.Add
。
TimeSpan s1 = TimeSpan.Parse("0:15");
TimeSpan s2 = TimeSpan.Parse("0:45");
TimeSpan s3 = s1 + s2;
// not tested; should work.
参照: http://msdn.microsoft.com/en-us/library/system.timespan.aspx