日期:2014-05-20 浏览次数:21179 次
int a = Integer.parseInt("8:30".replace(":", ""));
int b = Integer.parseInt("13:00".replace(":", ""));
int c = Integer.parseInt("11:30".replace(":", ""));
if(c >= a && c <= b){
System.out.println("上午上班时刻!");
}
------解决方案--------------------
判断开始时间,结束时间分别在那个时间段,分别的日期是多少,。。。。。。。。。。。。。。。。。