src/edu/kit/informatik/calendar/DateTime.java
/**
     * Subtracts a {@linkplain Time} instance from {@link #time}.
     * Calendar rules are respected. 
     * @param time The {@linkplain Time} instance to subtract
     * @return A new instance of {@linkplain DateTime} with the new values
     */
Subtracts a  Time instance from  #time.
Calendar rules are respected.
@param time The  Time instance to subtract
@return A new instance of  DateTime with the new values
Subtracts a Time instance from #time . Calendar rules are respected . @param time The Time instance to subtract @return A new instance of DateTime with the new values
public DateTime minus(Time time) {
        Time resultTime = this.time.minus(time);
        int dayCarry = 0;
        if (time.isAfter(this.time)) {
            dayCarry++;
        }
        return date.minusDays(dayCarry).atTime(resultTime);
    }
public DateTime minus ( Time time ) { Time resultTime = this . time . minus ( time ) ; int dayCarry = 0 ; if ( time . isAfter ( this . time ) ) { dayCarry ++ ; } return date . minusDays ( dayCarry ) . atTime ( resultTime ) ; }
Subtracts a {@linkplain Time} instance from {@link #time}.
Subtracts a { @linkplain Time } instance from { @link #time } .
//true: the time to be subtracted is larger than the one of the object //Only in this case, the subtraction will create a day carry