Time
Time
A
collection of function/methods for performing some common operation on times is also available.
You must make use of these function/methods to calculate and return the difference.
The function/method difference accepts two arguments- time1 and time2. Representing two times
and is supposed to return an integer representing the difference the difference in seconds/
int seconds;
int minutes;
int hours;
this.hours = hours;
this.minutes = minutes;
this.seconds = seconds;
Time diff;
}
public static Time difference(Time start, Time stop)
--stop.minutes;
stop.seconds += 60;
--stop.hours;
stop.minutes += 60;
return(diff);