Example usage for org.joda.time Partial toDateTime

List of usage examples for org.joda.time Partial toDateTime

Introduction

In this page you can find the example usage for org.joda.time Partial toDateTime.

Prototype

public DateTime toDateTime(ReadableInstant baseInstant) 

Source Link

Document

Resolves this partial against another complete instant to create a new full instant.

Usage

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