Package org.joda.time

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


                    nextUrl =
                            getRequest().getContextPath() + getWeeklyViewUrl() + "&" + getFirstDayParameter() + "="
                                    + firstDay.plusDays(Lesson.NUMBER_OF_DAYS_IN_WEEK).toString("ddMMyyyy");
                    beforeUrl =
                            getRequest().getContextPath() + getWeeklyViewUrl() + "&" + getFirstDayParameter() + "="
                                    + firstDay.minusDays(Lesson.NUMBER_OF_DAYS_IN_WEEK).toString("ddMMyyyy");
                    builder.append(
                            "<tr><td class=\"tcalendarlinks\"></td><td colspan=\"7\" class=\"acenter tcalendarlinks\"> <span class=\"smalltxt\"><a href=\"")
                            .append(beforeUrl).append("\">").append("&lt;&lt; ").append(getMessage("label.previous.week"))
                            .append("</a>");
                    builder.append(" , ").append("<a href=\"").append(nextUrl).append("\">")
View Full Code Here


                    nextUrl =
                            getRequest().getContextPath() + getDailyViewUrl() + "&amp;" + getFirstDayParameter() + "="
                                    + firstDay.plusDays(1).toString("ddMMyyyy");
                    beforeUrl =
                            getRequest().getContextPath() + getDailyViewUrl() + "&amp;" + getFirstDayParameter() + "="
                                    + firstDay.minusDays(1).toString("ddMMyyyy");
                    builder.append(
                            "<tr><td class=\"tcalendarlinks\"></td><td class=\"acenter tcalendarlinks\"><span class=\"smalltxt\"><a href=\"")
                            .append(beforeUrl).append("\">").append("&lt;&lt; ").append(getMessage("label.previous.day"))
                            .append("</a>");
                    builder.append(" , ").append("<a href=\"").append(nextUrl).append("\">").append(getMessage("label.next.day"))
View Full Code Here

            } else if (executionSemester.getSemester().intValue() == 2) {
                startExamsPeriod = executionDegree.getPeriodExamsSecondSemester().getStartYearMonthDay();
            } else {
                throw new DomainException("unsupported.execution.period.semester");
            }
            if (!startExamsPeriod.minusDays(2).isAfter(yearMonthDay)) {
                return true;
            }
        }

        return false;
View Full Code Here

    private YearMonthDay getValidEndDate(YearMonthDay endDate) {
        YearMonthDay lessonEnd =
                endDate.toDateTimeAtMidnight().withDayOfWeek(getDiaSemana().getDiaSemanaInDayOfWeekJodaFormat()).toYearMonthDay();
        if (lessonEnd.isAfter(endDate)) {
            lessonEnd = lessonEnd.minusDays(NUMBER_OF_DAYS_IN_WEEK);
        }
        return lessonEnd;
    }

    public Space getLessonCampus() {
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.