List of usage examples for org.joda.time Partial toDateTime
public DateTime toDateTime(ReadableInstant baseInstant)
From source file:net.sourceforge.fenixedu.domain.student.curriculum.ExtraCurricularActivity.java
License:Open Source License
public ExtraCurricularActivity(Student student, ExtraCurricularActivityType type, Partial start, Partial end) { this(student, type, new Interval(start.toDateTime(new DateTime(0)), end.toDateTime(new DateTime(0)))); }
From source file:net.sourceforge.fenixedu.domain.student.curriculum.ExtraCurricularActivity.java
License:Open Source License
public void setStart(Partial start) { setActivityInterval(new Interval(start.toDateTime(new DateTime(0)), getActivityInterval().getEnd())); }
From source file:net.sourceforge.fenixedu.domain.student.curriculum.ExtraCurricularActivity.java
License:Open Source License
public void setEnd(Partial end) { setActivityInterval(new Interval(getActivityInterval().getStart(), end.toDateTime(new DateTime(0)))); }