List of usage examples for org.joda.time YearMonthDay minusYears
public YearMonthDay minusYears(int years)
From source file:pt.utl.ist.codeGenerator.database.CreateTestData.java
License:Open Source License
private static String constructExecutionYearString() { final YearMonthDay yearMonthDay = new YearMonthDay(); return yearMonthDay.getMonthOfYear() < 8 ? constructExecutionYearString(yearMonthDay.minusYears(1), yearMonthDay) : constructExecutionYearString(yearMonthDay, yearMonthDay.plusYears(1)); }