Example #1
0
        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);
        }
Example #2
0
 public static DateTime Add(DateTime dateTime1, DateTimeSpan dateTimeSpan)
 {
     return(DateTimeSpan.Add(dateTime1, dateTimeSpan));
 }