Home
last modified time | relevance | path

Searched refs:YEARS_DIFFERENCE (Results 1 – 4 of 4) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoChronology.java122 static final int YEARS_DIFFERENCE = 1911; field in MinguoChronology
192 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in date()
222 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear)); in dateYearDay()
291 return IsoChronology.INSTANCE.isLeapYear(prolepticYear + YEARS_DIFFERENCE); in isLeapYear()
318 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE * 12L, range.getMaximum() - YEARS_DIFFE… in range()
322 …return ValueRange.of(1, range.getMaximum() - YEARS_DIFFERENCE, -range.getMinimum() + 1 + YEARS_DIF… in range()
326 …return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE, range.getMaximum() - YEARS_DIFFERENCE); in range()
DThaiBuddhistChronology.java123 static final int YEARS_DIFFERENCE = 543; field in ThaiBuddhistChronology
228 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in date()
258 … return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear)); in dateYearDay()
327 return IsoChronology.INSTANCE.isLeapYear(prolepticYear - YEARS_DIFFERENCE); in isLeapYear()
354 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE * 12L, range.getMaximum() + YEARS_DIFFE… in range()
358 …eturn ValueRange.of(1, -(range.getMinimum() + YEARS_DIFFERENCE) + 1, range.getMaximum() + YEARS_DI… in range()
362 …return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE, range.getMaximum() + YEARS_DIFFERENCE); in range()
DMinguoDate.java59 import static java.time.chrono.MinguoChronology.YEARS_DIFFERENCE;
176 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in of()
264 …rolepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFF… in range()
300 return isoDate.getYear() - YEARS_DIFFERENCE; in getProlepticYear()
321 …soDate.withYear(getProlepticYear() >= 1 ? nvalue + YEARS_DIFFERENCE : (1 - nvalue) + YEARS_DIFFER… in with()
323 return with(isoDate.withYear(nvalue + YEARS_DIFFERENCE)); in with()
325 … return with(isoDate.withYear((1 - getProlepticYear()) + YEARS_DIFFERENCE)); in with()
DThaiBuddhistDate.java59 import static java.time.chrono.ThaiBuddhistChronology.YEARS_DIFFERENCE;
176 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in of()
264 …ProlepticYear() <= 0 ? -(range.getMinimum() + YEARS_DIFFERENCE) + 1 : range.getMaximum() + YEARS_D… in range()
300 return isoDate.getYear() + YEARS_DIFFERENCE; in getProlepticYear()
321 …return with(isoDate.withYear((getProlepticYear() >= 1 ? nvalue : 1 - nvalue) - YEARS_DIFFERENCE)); in with()
323 return with(isoDate.withYear(nvalue - YEARS_DIFFERENCE)); in with()
325 … return with(isoDate.withYear((1 - getProlepticYear()) - YEARS_DIFFERENCE)); in with()