Given today\'s time e.g. 2:24PM, how do I get it to round to 2:30PM?
Similarly if the time was 2:17PM, how do I get it to round to 2:15PM?
You can use this simple code...
int mode = min % 15; if (mode > 15 / 2) { min = 15 - mode; } else { min = 0 - mode; } cal.add(Calendar.MINUTE, min);