List of usage examples for org.joda.time MutableDateTime setTime
public void setTime(final ReadableInstant instant)
From source file:au.org.intersect.dms.instrument.harvester.CellRMtbParser.java
License:Open Source License
private String convertPropertyValue(String name, Object value, Map<String, Object> row) { if (types.containsKey(name)) { if ("date".equals(types.get(name))) { MutableDateTime date = new MutableDateTime(value); Object timeValue = row.get("Document Creation Time"); LOGGER.trace("Converting date. Day: {}, time: {}", value, timeValue); DateTime time = new DateTime(timeValue); date.setTime(time); LOGGER.trace("Date converted to: {}", date); return convertDate2UTC(date.toDateTime()); }/*from www . j a va 2s.c o m*/ } return value.toString(); }
From source file:org.agatom.springatom.data.hades.model.appointment.NAppointment.java
License:Open Source License
public NAppointment setBeginTime(final LocalTime localTime) { this.requireBeginDate(); final MutableDateTime mutableDateTime = this.begin.toMutableDateTime(); mutableDateTime.setTime(localTime.toDateTimeToday()); this.begin = mutableDateTime.toDateTime(); return this; }
From source file:org.agatom.springatom.data.hades.model.appointment.NAppointment.java
License:Open Source License
public NAppointment setEndTime(final LocalTime localTime) { this.requireEndDate(); final MutableDateTime mutableDateTime = this.end.toMutableDateTime(); mutableDateTime.setTime(localTime.toDateTimeToday()); this.end = mutableDateTime.toDateTime(); return this; }