Examples of minusMonths()


Examples of org.joda.time.LocalDate.minusMonths()

            LocalDate nextDueLocalDate = new LocalDate(dueDate);
            if (isAnnualFee()) {
                nextDueLocalDate = nextDueLocalDate.withMonthOfYear(this.feeOnMonth).minusYears(1);
                nextDueLocalDate = setDayOfMonth(nextDueLocalDate);
            } else if (isMonthlyFee()) {
                nextDueLocalDate = nextDueLocalDate.minusMonths(this.feeInterval);
                nextDueLocalDate = setDayOfMonth(nextDueLocalDate);
            } else if (isWeeklyFee()) {
                nextDueLocalDate = nextDueLocalDate.minusDays(7 * this.feeInterval);
                nextDueLocalDate = setDayOfWeek(nextDueLocalDate);
            }
View Full Code Here

Examples of org.joda.time.YearMonthDay.minusMonths()

                    nextUrl =
                            getRequest().getContextPath() + getMonthlyViewUrl() + "&" + getFirstDayParameter() + "="
                                    + firstDay.plusMonths(1).toString("ddMMyyyy");
                    beforeUrl =
                            getRequest().getContextPath() + getMonthlyViewUrl() + "&" + getFirstDayParameter() + "="
                                    + firstDay.minusMonths(1).toString("ddMMyyyy");
                    builder.append("<tr><td class=\"tcalendarlinks\"></td><td colspan=\"").append(monthNumberOfDays)
                            .append("\" class=\"acenter tcalendarlinks\"><span class=\"smalltxt\"><a href=\"").append(beforeUrl)
                            .append("\">").append("&lt;&lt; ").append(getMessage("label.previous.month")).append("</a>");
                    builder.append(" , ").append("<a href=\"").append(nextUrl).append("\">")
                            .append(getMessage("label.next.month")).append(" &gt;&gt;").append("</a>")
View Full Code Here

Examples of org.joda.time.YearMonthDay.minusMonths()

                    nextUrl =
                            getRequest().getContextPath() + getMonthlyViewUrl() + "&amp;" + getFirstDayParameter() + "="
                                    + firstDay.plusMonths(1).toString("ddMMyyyy");
                    beforeUrl =
                            getRequest().getContextPath() + getMonthlyViewUrl() + "&amp;" + getFirstDayParameter() + "="
                                    + firstDay.minusMonths(1).toString("ddMMyyyy");
                    builder.append("<tr><td class=\"tcalendarlinks\"></td><td colspan=\"").append(monthNumberOfDays)
                            .append("\" class=\"acenter tcalendarlinks\"><span class=\"smalltxt\"><a href=\"").append(beforeUrl)
                            .append("\">").append("&lt;&lt; ").append(getMessage("label.previous.month")).append("</a>");
                    builder.append(" , ").append("<a href=\"").append(nextUrl).append("\">")
                            .append(getMessage("label.next.month")).append(" &gt;&gt;").append("</a>")
View Full Code Here

Examples of org.threeten.bp.LocalDate.minusMonths()

    if (fromEnd) {
      LocalDate date = endDate;
      int i = 6;
      while (!date.isBefore(startDate)) {
        dates.add(date);
        date = generateRecursive ? date.minusMonths(6) : endDate.minusMonths(i);
        i += 6;
      }
      Collections.reverse(dates);
      return dates.toArray(EMPTY_LOCAL_DATE_ARRAY);
    }
View Full Code Here

Examples of org.threeten.bp.LocalDate.minusMonths()

    if (fromEnd) {
      LocalDate date = endDate;
      int i = 3;
      while (!date.isBefore(startDate)) {
        dates.add(date);
        date = generateRecursive ? date.minusMonths(3) : endDate.minusMonths(i);
        i += 3;
      }
      Collections.reverse(dates);
      return dates.toArray(EMPTY_LOCAL_DATE_ARRAY);
    }
View Full Code Here

Examples of org.threeten.bp.LocalDate.minusMonths()

    if (fromEnd) {
      LocalDate date = endDate;
      int i = 1;
      while (!date.isBefore(startDate)) {
        dates.add(date);
        date = generateRecursive ? date.minusMonths(1) : endDate.minusMonths(i++);
      }
      Collections.reverse(dates);
      return dates.toArray(EMPTY_LOCAL_DATE_ARRAY);
    }
    LocalDate date = startDate;
View Full Code Here

Examples of org.threeten.bp.YearMonth.minusMonths()

    // minusMonths()
    //-----------------------------------------------------------------------
    @Test
    public void test_minusMonths_long() {
        YearMonth test = YearMonth.of(2008, 6);
        assertEquals(test.minusMonths(1), YearMonth.of(2008, 5));
    }

    @Test
    public void test_minusMonths_long_noChange_equal() {
        YearMonth test = YearMonth.of(2008, 6);
View Full Code Here

Examples of org.threeten.bp.YearMonth.minusMonths()

    }

    @Test
    public void test_minusMonths_long_noChange_equal() {
        YearMonth test = YearMonth.of(2008, 6);
        assertEquals(test.minusMonths(0), test);
    }

    @Test
    public void test_minusMonths_long_overYears() {
        YearMonth test = YearMonth.of(2008, 6);
View Full Code Here

Examples of org.threeten.bp.YearMonth.minusMonths()

    }

    @Test
    public void test_minusMonths_long_overYears() {
        YearMonth test = YearMonth.of(2008, 6);
        assertEquals(test.minusMonths(6), YearMonth.of(2007, 12));
    }

    @Test
    public void test_minusMonths_long_negative() {
        YearMonth test = YearMonth.of(2008, 6);
View Full Code Here

Examples of org.threeten.bp.YearMonth.minusMonths()

    }

    @Test
    public void test_minusMonths_long_negative() {
        YearMonth test = YearMonth.of(2008, 6);
        assertEquals(test.minusMonths(-1), YearMonth.of(2008, 7));
    }

    @Test
    public void test_minusMonths_long_negativeOverYear() {
        YearMonth test = YearMonth.of(2008, 6);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.