日期:2014-05-17 浏览次数:20834 次
DateTime dt1 = DateTime.Parse("08:00:00"); DateTime dt2 = DateTime.Parse("12:00:00"); while (DateTime.Compare(dt1, dt2) < 0) { dt1 = dt1.AddMinutes(8); Console.WriteLine(dt1.ToString("HH:mm:ss")); }