Searched refs:YEARS_DIFFERENCE (Results 1 - 4 of 4) sorted by relevance
/openjdk9/jdk/src/java.base/share/classes/java/time/chrono/ |
H A D | MinguoChronology.java | 121 static final int YEARS_DIFFERENCE = 1911; field in class:MinguoChronology 191 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); 221 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear)); 290 return IsoChronology.INSTANCE.isLeapYear(prolepticYear + YEARS_DIFFERENCE); 317 return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE * 12L, range.getMaximum() - YEARS_DIFFERENCE * 12L); 321 return ValueRange.of(1, range.getMaximum() - YEARS_DIFFERENCE, -range.getMinimum() + 1 + YEARS_DIFFERENCE); 325 return ValueRange.of(range.getMinimum() - YEARS_DIFFERENCE, range.getMaximum() - YEARS_DIFFERENCE); [all...] |
H A D | ThaiBuddhistChronology.java | 123 static final int YEARS_DIFFERENCE = 543; field in class:ThaiBuddhistChronology 228 return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); 258 return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear)); 327 return IsoChronology.INSTANCE.isLeapYear(prolepticYear - YEARS_DIFFERENCE); 354 return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE * 12L, range.getMaximum() + YEARS_DIFFERENCE * 12L); 358 return ValueRange.of(1, -(range.getMinimum() + YEARS_DIFFERENCE) + 1, range.getMaximum() + YEARS_DIFFERENCE); 362 return ValueRange.of(range.getMinimum() + YEARS_DIFFERENCE, range.getMaximum() + YEARS_DIFFERENCE); [all...] |
H A D | MinguoDate.java | 59 import static java.time.chrono.MinguoChronology.YEARS_DIFFERENCE; 182 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); 270 long max = (getProlepticYear() <= 0 ? -range.getMinimum() + 1 + YEARS_DIFFERENCE : range.getMaximum() - YEARS_DIFFERENCE); 306 return isoDate.getYear() - YEARS_DIFFERENCE; 327 return with(isoDate.withYear(getProlepticYear() >= 1 ? nvalue + YEARS_DIFFERENCE : (1 - nvalue) + YEARS_DIFFERENCE)); 329 return with(isoDate.withYear(nvalue + YEARS_DIFFERENCE)); 331 return with(isoDate.withYear((1 - getProlepticYear()) + YEARS_DIFFERENCE));
|
H A D | ThaiBuddhistDate.java | 59 import static java.time.chrono.ThaiBuddhistChronology.YEARS_DIFFERENCE; 182 return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); 270 long max = (getProlepticYear() <= 0 ? -(range.getMinimum() + YEARS_DIFFERENCE) + 1 : range.getMaximum() + YEARS_DIFFERENCE); 306 return isoDate.getYear() + YEARS_DIFFERENCE; 327 return with(isoDate.withYear((getProlepticYear() >= 1 ? nvalue : 1 - nvalue) - YEARS_DIFFERENCE)); 329 return with(isoDate.withYear(nvalue - YEARS_DIFFERENCE)); 331 return with(isoDate.withYear((1 - getProlepticYear()) - YEARS_DIFFERENCE));
|
Completed in 44 milliseconds