I need to be able to round time to the next nearest 5 minutes.
Time now 11:54 - clock is 11:55 Time now 11:56 - clock is 12:00
Time now 11:54 - clock is 11:55
Time now 11:56 - clock is 12:00
You could divide out 5, do a Math.ceil then multiply back up by 5
5
Math.ceil
minutes = (5 * Math.ceil(minutes / 5));