The following method should resolve your problem
public boolean isInRange() {
Calendar calendar = Calendar.getInstance();
int minute = calendar.get(Calendar.MINUTE);
return minute >= 10 && minute < 15;
}
It simple recoveries the minute from the current time and verifies if it is between 10 and 15
0
solved Using Java, how can i see if the current time is between 10 and 15 minutes after the hour? [closed]