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?
if you have the minutes you can round them with the following function: int minutes = i % 15 < 8 ? i / 15 * 15 : (i / 15 + 1) * 15;
int minutes = i % 15 < 8 ? i / 15 * 15 : (i / 15 + 1) * 15;