add time to gregorian calendar?

hi,

does anyone know a way of adding minutes to a gregorian calendar so that if i add (for example) 10 minutes to 6.55 it will go to 7.05 (as opposed to 6.65?)

at the moment i have created a simple date format (HHmmss) and parsed it to an integer so it can be compared to other times.

thanks for any help

[329 byte] By [Jazz8146a] at [2007-11-27 1:07:12]
# 1
You need to spend time looking at the Javadoc for library classes you are using.gregorianCalendar.add(Calendar.MINUTE, 10);
sabre150a at 2007-7-11 23:42:25 > top of Java-index,Java Essentials,Java Programming...
# 2
theCalendar.add(Calendar.MINUTE, 10);Treating HHmmss as an int is not the way to compare dates.Use one of the Date's or Calendar's before() or after() methods.
jverda at 2007-7-11 23:42:25 > top of Java-index,Java Essentials,Java Programming...