src/edu/kit/informatik/calendar/Date.java
/**
     * Subtracts a given amount of days to the instance
     * Calendar rules are respected
     * @param days The amount of days to subtract
     * @return A new {@link Date} instance with the corresponding values
     */
Subtracts a given amount of days to the instance
Calendar rules are respected
@param days The amount of days to subtract
@return A new  Date instance with the corresponding values
Subtracts a given amount of days to the instance Calendar rules are respected @param days The amount of days to subtract @return A new Date instance with the corresponding values
public Date minusDays(int days) {
        int totalDays = this.day - days;
        if (totalDays <= 0) {
            return  new Date(year, month, 1).minusMonths(1).moveToEndOfMonth().minusDays(Math.abs(totalDays));
        } else {
            return new Date(year, month, totalDays);
        }
    }
public Date minusDays ( int days ) { int totalDays = this . day - days ; if ( totalDays <= 0 ) { return new Date ( year , month , 1 ) . minusMonths ( 1 ) . moveToEndOfMonth ( ) . minusDays ( Math . abs ( totalDays ) ) ; } else { return new Date ( year , month , totalDays ) ; } }
Subtracts a given amount of days to the instance
 Calendar rules are respected
 @param days The amount of days to subtract
 @return A new {@link Date} instance with the corresponding values
Subtracts a given amount of days to the instance Calendar rules are respected @param days The amount of days to subtract @return A new { @link Date } instance with the corresponding values