Package org.joda.time

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


                    for (Interval interval : event.getGanttDiagramEventSortedIntervals()) {

                        toWrite = null;
                        toMark = true;
                        LocalDate localDate = yearMonthDay.withDayOfMonth(dayOfMonth).toLocalDate();
                        if ((event.getGanttDiagramEventDayType(interval) == DayType.SPECIFIC_DAYS)
                                || (event.getGanttDiagramEventDayType(interval) == DayType.WORKDAY)) {
                            if ((localDate.getDayOfWeek() == SATURDAY_IN_JODA_TIME)
                                    || (localDate.getDayOfWeek() == SUNDAY_IN_JODA_TIME) || (Holiday.isHoliday(localDate))) {
                                toMark = false;
View Full Code Here


                    if (!isEventToMarkWeekendsAndHolidays) {
                        builder.append("</div></td>");
                    } else if (!specialDiv) {
                        builder.append("<td class=\"tdnomark\">");
                        if (dayOfMonth <= yearMonthDay.plusMonths(1).minusDays(1).getDayOfMonth()) {
                            LocalDate localDate = yearMonthDay.withDayOfMonth(dayOfMonth).toLocalDate();
                            if (Holiday.isHoliday(localDate)) {
                                builder.append(F);
                            } else if (localDate.getDayOfWeek() == SATURDAY_IN_JODA_TIME) {
                                builder.append("S");
                            } else if (localDate.getDayOfWeek() == SUNDAY_IN_JODA_TIME) {
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.