if (timePeriods[i].StartHour!=0&&timePeriods[i].StartMinute!=0&&timePeriods[i].StartSecond!=0&&timePeriods[i].EndHour!=0&&timePeriods[i].EndMinute!=0&&timePeriods[i].EndSecond!=0)//排除开始和结束时间都是0点的不判断
{
{
if (timePeriods[i].Contains(timePeriods[j])||timePeriods[j].Contains(timePeriods[i]))