public static int getTimeToInt(String time ){
String[] split = time.split(":");
int h1 = Integer.parseInt(split[0]);
int m1 = Integer.parseInt(split[1]);
int s1 = Integer.parseInt(split[2]);
return h1*60+m1*60+s1;
}
SimpleDateFormat format = new SimpleDateFormat("HH:mm:ss");
String format1 = format.format(new Date());
int timeToInt1 = getTimeToInt(format1);
int timeToInt = getTimeToInt("20:14:20");
return timeToInt<timeToInt1;