List of usage examples for org.joda.time YearMonthDay toDateTimeAtCurrentTime
public DateTime toDateTimeAtCurrentTime()
From source file:net.sourceforge.fenixedu.domain.util.workflow.StateBean.java
License:Open Source License
public void setStateDate(final YearMonthDay ymd) { if (ymd == null) { setStateDateTime(null);/*from w ww.j a v a 2s . co m*/ return; } setStateDateTime( new YearMonthDay().equals(ymd) ? ymd.toDateTimeAtCurrentTime() : ymd.toDateTimeAtMidnight()); }