Examples of addDays()


Examples of org.goda.time.MutableDateTime.addDays()

        String[] values = text.split(":");
        time.setHourOfDay(Integer.parseInt(values[0]));
        time.setMinuteOfHour(Integer.parseInt(values[1]));

        if (time.isAfterNow() && (options.getContext() == PointerType.PAST)) {
            time.addDays(-1);
        }

        MutableInterval result = new MutableInterval(time, time);
        result.setStart(time);
        result.setEnd(time);
View Full Code Here

Examples of org.joda.time.MutableDateTime.addDays()

      DateTime start = d.toDateTime();
      DateTime end = start.plusDays(1);
      Weight wi = new Weight(start, end,
          WEIGHT_DELAY_PER_DAY * i);
      preferredIntervals.add(wi);
      d.addDays(1);
    }

    // order and store the aggregated lists with intervals
    IntervalsUtil.order(infeasibleIntervals);
    getState().put("infeasible", infeasibleIntervals);
View Full Code Here

Examples of pt.opensoft.util.DateTime.addDays()

    protected static DateTime getNextDate(String weekDayName, String hour) {
        DateTime date = new DateTime(new Date().formatDate() + " " + hour);
        int weekDay = Week.getWeekDay(weekDayName);
        if (weekDay == -1) throw new IllegalArgumentException("invalid week day name: " + weekDayName);
        int diff = weekDay - date.getWeekDay();
        date = date.addDays(diff < 0 ? diff + 7 : diff);
        return date;
    }

    protected Logger logger = Logger.getDefault().getWrapper();
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.