Example usage for org.joda.time Partial Partial

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

Introduction

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

Prototype

public Partial(ReadablePartial partial) 

Source Link

Document

Constructs a Partial by copying all the fields and types from another partial.

Usage

From source file:net.sourceforge.fenixedu.presentationTier.Action.pedagogicalCouncil.ViewTutorshipDA.java

License:Open Source License

/**
 * Aux method to create Partials//from  w w  w .j a  v a  2 s . c om
 * 
 * @return
 */
private Partial createPartialForEndDate() {
    DateTime today = new DateTime();
    return new Partial(today.plusYears(2).toLocalDate());
}

From source file:se.inera.intyg.intygstjanst.web.service.converter.CertificateToSjukfallCertificateConverter.java

License:Open Source License

private SjukfallCertificateWorkCapacity buildWorkCapacity(Integer workCapacity,
        InternalLocalDateInterval interval) {
    SjukfallCertificateWorkCapacity wc = new SjukfallCertificateWorkCapacity();
    wc.setCapacityPercentage(workCapacity);
    wc.setFromDate(PartialConverter.partialToString(new Partial(interval.fromAsLocalDate())));
    wc.setToDate(PartialConverter.partialToString(new Partial(interval.tomAsLocalDate())));
    return wc;/*from   ww w .  ja v  a 2s .  co  m*/
}