Example usage for org.joda.time YearMonthDay toDateTimeAtCurrentTime

List of usage examples for org.joda.time YearMonthDay toDateTimeAtCurrentTime

Introduction

In this page you can find the example usage for org.joda.time YearMonthDay toDateTimeAtCurrentTime.

Prototype

public DateTime toDateTimeAtCurrentTime() 

Source Link

Document

Converts this partial to a full datetime using the default time zone setting the date fields from this instance and the time fields from the current time.

Usage

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());
}