/**
* 判断时间是否在某个时间段内
* @param s需要判断的时间,形如23:30:00
* @param s1 时间段开始时间,形如22:30:00
* @param s2时间段结束时间,形如06:00:00
* @return boolean
*/public static boolean isInTimeRange(String s,String s1,String s2){
int set = Integer.valueOf(s.replaceAll(":",""));
int begin = Integer.valueOf(s1.replaceAll(":",""));
int end = Integer.valueOf(s2.replaceAll(":",""));
if (begin > end){
return set < end || set > begin;
} else {
return set > begin && set < end;
}
}