摘要: 前几天写东西要用到判断当前时间是否在一个时间段内,比如在21:00和03:00这个时间段内,从网上看了几个都没有考虑时间段夸天的情况,下面是改进的一个DateTime startTime = DateTime.Parse("21:30"); DateTime endTime = DateTime.Parse("13:30 "); if (startTime > startTime) { Da... 阅读全文
posted @ 2009-12-30 14:48 fengyun99 阅读(1198) 评论(0) 推荐(0) 编辑