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