Example usage for org.joda.time MutableDateTime dayOfYear

List of usage examples for org.joda.time MutableDateTime dayOfYear

Introduction

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

Prototype

public Property dayOfYear() 

Source Link

Document

Get the day of year property.

Usage

From source file:com.xpn.xwiki.criteria.impl.PeriodFactory.java

License:Open Source License

private static MutableDateTime toYearStart(MutableDateTime mdt) {
    mdt.setDayOfYear(mdt.dayOfYear().getMinimumValue());
    return toDayStart(mdt);
}

From source file:com.xpn.xwiki.criteria.impl.PeriodFactory.java

License:Open Source License

private static MutableDateTime toYearEnd(MutableDateTime mdt) {
    mdt.setDayOfYear(mdt.dayOfYear().getMaximumValue());
    return toDayEnd(mdt);
}