public int getLeapAmount(long instant) { if (iChronology.isLeapYear(get(instant))) { return 1; } else { return 0; } }
public int getLeapAmount(long instant) { if (iChronology.isLeapYear(get(instant))) { return 1; } else { return 0; } }
public boolean isLeap(long instant) { return iChronology.isLeapYear(get(instant)); }
public long roundFloor(long instant) { return iChronology.getYearMillis(get(instant)); }
public long roundFloor(long instant) { return iChronology.getYearMillis(get(instant)); }
public boolean isLeap(long instant) { return iChronology.isLeapYear(get(instant)); }
public long roundCeiling(long instant) { int year = get(instant); long yearStartMillis = iChronology.getYearMillis(year); if (instant != yearStartMillis) { // Bump up to start of next year. instant = iChronology.getYearMillis(year + 1); } return instant; }
public long add(long instant, int years) { if (years == 0) { return instant; } int thisYear = get(instant); int newYear = FieldUtils.safeAdd(thisYear, years); return set(instant, newYear); }
public long add(long instant, int years) { if (years == 0) { return instant; } int thisYear = get(instant); int newYear = FieldUtils.safeAdd(thisYear, years); return set(instant, newYear); }
public long roundCeiling(long instant) { int year = get(instant); long yearStartMillis = iChronology.getYearMillis(year); if (instant != yearStartMillis) { // Bump up to start of next year. instant = iChronology.getYearMillis(year + 1); } return instant; }
public int getLeapAmount(long instant) { if (iChronology.isLeapYear(get(instant))) { return 1; } else { return 0; } }
public boolean isLeap(long instant) { return iChronology.isLeapYear(get(instant)); }
public long roundFloor(long instant) { return iChronology.getYearMillis(get(instant)); }
public long roundCeiling(long instant) { int year = get(instant); long yearStartMillis = iChronology.getYearMillis(year); if (instant != yearStartMillis) { // Bump up to start of next year. instant = iChronology.getYearMillis(year + 1); } return instant; }
public long add(long instant, int years) { if (years == 0) { return instant; } int thisYear = get(instant); int newYear = FieldUtils.safeAdd(thisYear, years); return set(instant, newYear); }
public int getLeapAmount(long instant) { if (iChronology.isLeapYear(get(instant))) { return 1; } else { return 0; } }
public int getLeapAmount(long instant) { if (iChronology.isLeapYear(get(instant))) { return 1; } else { return 0; } }
public long roundCeiling(long instant) { int year = get(instant); long yearStartMillis = iChronology.getYearMillis(year); if (instant != yearStartMillis) { // Bump up to start of next year. instant = iChronology.getYearMillis(year + 1); } return instant; }
public long add(long instant, int years) { if (years == 0) { return instant; } int thisYear = get(instant); int newYear = FieldUtils.safeAdd(thisYear, years); return set(instant, newYear); }
public long add(long instant, int years) { if (years == 0) { return instant; } int thisYear = get(instant); int newYear = FieldUtils.safeAdd(thisYear, years); return set(instant, newYear); }