You are on page 1of 1

public int difference(Time1 other) { int time1,time, diff; time1 = this.hour*3600 + this.minute*60 + this.second; time2 = other.hour*3600 + other.minute*60 + other.

second; diff = time1 - time2; return diff; }

You might also like