日期:2014-05-17 浏览次数:20414 次
List<string> lstResult = new List<string>();
int intSpan = 30;
DateTime dt = new DateTime(2000, 1, 1, 0, 0, 0);
while(dt.Day == 1)
{
DateTime dtTemp = dt.AddMinutes(intSpan);
lstResult.Add(String.Format("{0}-{1}", dt.ToString("HH:mm"), dtTemp.ToString("HH:mm")));
dt = dtTemp;
}