Package org.apache.wicket.util.time

Examples of org.apache.wicket.util.time.Duration.days()


      Duration duration = Duration.valueOf(end.getMillis()
          - start.getMillis());

      for (int j = 0; j < 1; j++) {
        for (int i = 0; i < duration.days() + 1; i++) {
          DateTime calendar = start;
          calendar = calendar.plusDays(i).withHourOfDay(
              6 + random.nextInt(10));

          Event event = new Event();
View Full Code Here


          DateTime calendar = start;
          calendar = calendar.plusDays(i).withHourOfDay(
              6 + random.nextInt(10));

          Event event = new Event();
          int id = (int) (j * duration.days() + i);
          event.setId("" + id);
          event.setTitle(title + (1 + i));
          event.setStart(calendar);
          calendar = calendar.plusHours(random.nextInt(8));
          event.setEnd(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.