src/edu/kit/informatik/calendar/Time.java
/**
     * Adds a {@linkplain Time} instance to the object
     * @param time The {@linkplain Time} instance to add
     * @return A new {@linkplain Time} with the resulting values
     */
Adds a  Time instance to the object
@param time The  Time instance to add
@return A new  Time with the resulting values
Adds a Time instance to the object @param time The Time instance to add @return A new Time with the resulting values
public Time plus(Time time) {
        int totalSeconds = second + time.getSecond();
        int totalMinutes = minute + time.getMinute();
        int totalHours = hour + time.getHour();
        if (totalSeconds > 59) {
            totalMinutes++;
            totalSeconds -= 60;
        }
        if (totalMinutes > 59) {
            totalHours++;
            totalMinutes -= 60;
        }
        if (totalHours > 23) {
            totalHours -= 24;
        }
        return new Time(totalHours, totalMinutes, totalSeconds);
    }
public Time plus ( Time time ) { int totalSeconds = second + time . getSecond ( ) ; int totalMinutes = minute + time . getMinute ( ) ; int totalHours = hour + time . getHour ( ) ; if ( totalSeconds > 59 ) { totalMinutes ++ ; totalSeconds -= 60 ; } if ( totalMinutes > 59 ) { totalHours ++ ; totalMinutes -= 60 ; } if ( totalHours > 23 ) { totalHours -= 24 ; } return new Time ( totalHours , totalMinutes , totalSeconds ) ; }
Adds a {@linkplain Time} instance to the object
 @param time The {@linkplain Time} instance to add
 @return A new {@linkplain Time} with the resulting values
Adds a { @linkplain Time } instance to the object @param time The { @linkplain Time } instance to add @return A new { @linkplain Time } with the resulting values