Examples of toDateTime()


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

  };
 
  private static DateTime adjustEventTimeToUTC(Timestamp timestamp, String eventTimeZone) {
    MutableDateTime mutableDateTime = new DateTime(timestamp).toMutableDateTime();
    mutableDateTime.setZoneRetainFields(DateTimeZone.forID(eventTimeZone));
    DateTime utcAdjustedDateTime = mutableDateTime.toDateTime().toDateTime(DateTimeZone.UTC);
    return utcAdjustedDateTime;
  }

  private static final String SELECT_FROM_EVENT_SESSION = "select s.id, s.title, ts.startTime, ts.endTime, s.description, s.hashtag, s.rating, s.venue, s.room, r.name as roomName, (f.attendee is not null) as favorite, l.name from EventSession s ";
 
View Full Code Here

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

   * composite counters.
   */
  private GaugeCounter nextCurrentCounter() {
    ReadableDateTime now = new DateTime();
    GaugeCounter gaugeCounter = gaugeCounterFactory.create(
      now, now.toDateTime().plusSeconds(6)
    );

    allTimeCounter.addEventCounter(gaugeCounter);
    hourCounter.addEventCounter(gaugeCounter);
    tenMinuteCounter.addEventCounter(gaugeCounter);
View Full Code Here

Examples of org.libreplan.business.planner.limiting.entities.DateAndHour.toDateTime()

        DateAndHour advancementEndDate = getAdvanceEndDate(queueElement);
        if (advancementEndDate == null) {
            return null;
        }
        Duration durationBetween = new Duration(queueElement.getStartTime()
                .toDateTime().getMillis(), advancementEndDate.toDateTime().getMillis());
        Div progressBar = new Div();
        if (!queueElement.getStartDate().isEqual(advancementEndDate.getDate())) {
            progressBar.setWidth(datesMapper.toPixels(durationBetween) + "px");
            progressBar.setSclass("queue-progress-bar");
        }
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.