DateFormat is supposed to be used to format date and time information. For example, it let's you format Strings like
25 December 2005
or
9/11/2001
or
08:00 am
or
24 September 2005 08:25:00
Note that these are all absolute date and time. If you want to print a duration instead, you should just print the number calculated by the difference of the end time and the start time. Note that getTime() returns the value in milliseconds. Do you want to convert this into seconds? Unfortunately, there is not a built-in method to do this. So what steps do you need to take in order to convert milliseconds into seconds? Perhaps you should try describing this in natural language (i.e. English, etc.) before you convert it into
Java.
Layne