Package org.joda.time

Examples of org.joda.time.DateMidnight.toDateTime()


    // build months
    List<DateTime> months = calendar.getMonths();

    DateMidnight thisMonth = getDefaultDateTime().toDateMidnight().withDayOfMonth(1);
    months.add(thisMonth.toDateTime());

    // display last 6 months
    while (months.size() < 6) {
      thisMonth = thisMonth.minusMonths(1);
      months.add(thisMonth.toDateTime());
View Full Code Here


    months.add(thisMonth.toDateTime());

    // display last 6 months
    while (months.size() < 6) {
      thisMonth = thisMonth.minusMonths(1);
      months.add(thisMonth.toDateTime());
    }

    reverse(months);

    // build selectedMonth
View Full Code Here

      }

      final Event event = new Event().setAllDay(true);
      final String id = "h-" + (++idCounter);
      event.setId(id);
      event.setStart(day.toDateTime());
      String title;
      final String holidayInfo = dh.getHolidayInfo();
      if (holidayInfo != null && holidayInfo.startsWith("calendar.holiday.") == true) {
        title = PFUserContext.getLocalizedString(holidayInfo);
      } else {
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.