Examples of plusDays()


Examples of org.joda.time.Period.plusDays()

  @Override
  public Period readPeriod(){

      Period p = new Period();
      return p.plusDays(holder.days).plusMillis(holder.milliseconds);


  }

  @Override
View Full Code Here

Examples of org.joda.time.Period.plusDays()

  }

  private Object readSingleObject() {

      Period p = new Period();
      return p.plusDays(holder.days).plusMillis(holder.milliseconds);

  }

}
View Full Code Here

Examples of org.joda.time.Period.plusDays()

    public Period getObject(int index) {
      int offsetIndex = index * 12;
      int millis = data.getInt(offsetIndex + 4);
      int  days   = data.getInt(offsetIndex);
      Period p = new Period();
      return p.plusDays(days).plusMillis(millis);
    }

   
    public StringBuilder getAsStringBuilder(int index) {
      int offsetIndex = index * 12;
 
View Full Code Here

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

            case WEEKLY:

                if (!StringUtils.isEmpty(getWeeklyViewUrl())) {
                    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=\"")
View Full Code Here

Examples of org.libreplan.business.workingday.IntraDayDate.PartialDay.plusDays()

            boolean notWorkable;
            StringBuilder result = new StringBuilder();
            for (int i = 0; i < 7; i++) {
                notWorkable = calendar.getCapacityOn(PartialDay.wholeDay(day))
                        .isZero();
                day = day.plusDays(1);
                result.append(notWorkable ? i * WEEK_LEVEL_SHADE_WIDTH
                        : -WEEK_LEVEL_SHADE_WIDTH);
                result.append("px 0");
                if (i != 6) {
                    result.append(",");
View Full Code Here

Examples of org.modeshape.jcr.api.value.DateTime.plusDays()

            DateTimeFactory factory = runningState().context().getValueFactories().getDateFactory();
            DateTime now = factory.create();
            DateTime initialTime = factory.create(now.getYear(), now.getMonthOfYear(), now.getDayOfMonth(), hours, mins, 0, 0);
            long delay = initialTime.getMilliseconds() - System.currentTimeMillis();
            if (delay <= 0L) {
                initialTime = initialTime.plusDays(1);
                delay = initialTime.getMilliseconds() - System.currentTimeMillis();
            }
            if (delay < 10000L) delay += 10000L; // at least 10 second delay to let repository finish starting ...
            assert delay >= 0;
            return delay;
View Full Code Here

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

    public void test_atDay_notLeapYear() {
        Year test = Year.of(2007);
        LocalDate expected = LocalDate.of(2007, 1, 1);
        for (int i = 1; i <= 365; i++) {
            assertEquals(test.atDay(i), expected);
            expected = expected.plusDays(1);
        }
    }

    @Test(expectedExceptions=DateTimeException.class)
    public void test_atDay_notLeapYear_day366() {
View Full Code Here

Examples of org.threeten.bp.LocalDateTime.plusDays()

                }
            }
            date = deduplicate(date);
            LocalDateTime ldt = LocalDateTime.of(date, time);
            if (endOfDay) {
                ldt = ldt.plusDays(1);
            }
            return ldt;
        }
    }
View Full Code Here

Examples of org.threeten.bp.ZonedDateTime.plusDays()

    final ZonedDateTime last = BUSINESS_DAY_PRECEDING.adjustDate(calendar, periodLastDate.minusDays(1));
    final List<ZonedDateTime> fixingList = new ArrayList<>();
    ZonedDateTime date = periodFirstDate;
    while (!date.isAfter(periodLastDate)) {
      fixingList.add(date);
      date = BUSINESS_DAY_FOLLOWING.adjustDate(calendar, date.plusDays(1));
    }
    final ZonedDateTime[] fixingDate = fixingList.toArray(new ZonedDateTime[fixingList.size()]);
    final double[] fixingAccrualFactor = new double[fixingDate.length - 1];
    for (int loopfix = 0; loopfix < fixingDate.length - 1; loopfix++) {
      fixingAccrualFactor[loopfix] = index.getDayCount().getDayCountFraction(fixingDate[loopfix], fixingDate[loopfix + 1], calendar);
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.