TimeSpan timeSpan = new TimeSpan(2, 0, 0, 0); TimeSpan newTimeSpan = timeSpan.Add(new TimeSpan(1, 0, 0, 0)); // newTimeSpan will be 3 days
TimeSpan timeSpan = new TimeSpan(2, 0, 0); TimeSpan newTimeSpan = timeSpan.Add(new TimeSpan(1, 0, 0)); // newTimeSpan will be 3 hours
TimeSpan timeSpan = new TimeSpan(0, 0, 10); TimeSpan newTimeSpan = timeSpan.Add(new TimeSpan(0, 0, 30)); // newTimeSpan will be 40 secondsThe package library for TimeSpan is `System.TimeSpan`.