public void AddSpan() { DateTime dateTime = DateTimeSpan.Add(new DateTime(2000, 10, 10, 10, 10, 10), new DateTimeSpan(1, 1, 1, 1, 1, 1, 1)); Assert.AreEqual(new DateTime(2001, 11, 18, 11, 11, 11), dateTime); }
public static DateTime Add(DateTime dateTime1, DateTimeSpan dateTimeSpan) { return(DateTimeSpan.Add(dateTime1, dateTimeSpan)); }