Examples of plus()


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

    LocalDate date = obsStartDate;
    while (!date.isAfter(obsEndDate)) {
      if (calendar.isWorkingDay(date)) {
        nGood++;
      }
      date = date.plus(period);
    }
    return nGood;
  }

  @Override

Examples of org.threeten.bp.Month.plus()

    final List<LocalDate> dates = new ArrayList<>();
    int year = endDate.getYear();
    Month month = startDate.getMonth();
    LocalDate date = startDate.withMonth(month.getValue()).withDayOfMonth(_dayOfMonth);
    if (date.isBefore(startDate)) {
      month = month.plus(1);
      date = date.withMonth(month.getValue());
    }
    year = date.getYear();
    while (!date.isAfter(endDate)) {
      dates.add(date);

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

    }
    final List<ZonedDateTime> dates = new ArrayList<>();
    ZonedDateTime date = startDate.with(TemporalAdjusters.lastDayOfMonth());
    while (!date.isAfter(endDate)) {
      dates.add(date);
      date = date.plus(Period.ofMonths(1)).with(TemporalAdjusters.lastDayOfMonth());
    }
    return dates.toArray(EMPTY_ZONED_DATE_TIME_ARRAY);
  }
}

Examples of org.threeten.bp.chrono.ChronoLocalDate.plus()

                                    fieldValues.get(weekDef.weekOfWeekBasedYear), weekDef.weekOfWeekBasedYear);
                    int dateDow = localizedDayOfWeek(date, sow);
                    long weeks = wowby - localizedWeekOfYear(date, dateDow);
                    days = weeks * 7 + (dow - dateDow);
                }
                date = date.plus(days, DAYS);
                if (resolverStyle == ResolverStyle.STRICT) {
                    if (date.getLong(this) != fieldValues.get(this)) {
                        throw new DateTimeException("Strict mode rejected date parsed to a different year");
                    }
                }

Examples of org.threeten.bp.temporal.Temporal.plus()

  @Override
  public Temporal adjustInto(Temporal temporal) {
    Temporal result = temporal;
    do {
      result = result.plus(1, MONTHS);
    } while (!_futureQuarters.contains(Month.from(result)));
    return result;
  }

}

Examples of winterwell.utils.time.Time.plus()

    this.rotationInterval = interval;
    this.rotationHistory = history;
    // FIXME how do we get the file created time?
    Time created = file.exists() ? new Time(file.lastModified())
        : new Time();
    nextRotation = created.plus(interval);
  }

  @Override
  public String toString() {
    return "LogFile:" + file.getAbsolutePath();
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.