/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticDate.java | 104 private final int prolepticYear; field in CopticDate 124 int prolepticYear = (int) (((epochDay * 4) + 1463) / 1461); in ofEpochDay() local 125 int startYearEpochDay = (prolepticYear - 1) * 365 + (prolepticYear / 4); in ofEpochDay() 129 return new CopticDate(prolepticYear, month, dom); in ofEpochDay() 132 private static CopticDate resolvePreviousValid(int prolepticYear, int month, int day) { in resolvePreviousValid() argument 134 day = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? 6 : 5; in resolvePreviousValid() 136 return new CopticDate(prolepticYear, month, day); in resolvePreviousValid() 148 CopticDate(int prolepticYear, int month, int dayOfMonth) { in CopticDate() argument 152 …range = CopticChronology.INSTANCE.isLeapYear(prolepticYear) ? CopticChronology.DOM_RANGE_LEAP : Co… in CopticDate() 158 this.prolepticYear = prolepticYear; in CopticDate() [all …]
|
D | CopticChronology.java | 173 public CopticDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 174 return new CopticDate(prolepticYear, month, dayOfMonth); in date() 178 public CopticDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 179 return new CopticDate(prolepticYear, (dayOfYear - 1) / 30 + 1, (dayOfYear - 1) % 30 + 1); in dateYearDay() 207 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 208 return Math.floorMod(prolepticYear, 4) == 3; in isLeapYear() 212 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in CopticChronology
|
D | TCKJapaneseChronology.java | 394 … assertEquals(JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 430 JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra); in test_prolepticYearError() 453 int year = JapaneseChronology.INSTANCE.prolepticYear(era, 1); in test_InvalidEras()
|
D | TCKThaiBuddhistChronology.java | 307 …assertEquals(ThaiBuddhistChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 355 int year = ThaiBuddhistChronology.INSTANCE.prolepticYear(era, 1); in test_InvalidEras()
|
D | TCKMinguoChronology.java | 300 … assertEquals(MinguoChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 348 int year = MinguoChronology.INSTANCE.prolepticYear(era, 1); in test_InvalidEras()
|
D | TCKHijrahChronology.java | 192 int year = HijrahChronology.INSTANCE.prolepticYear(era, 1); in test_InvalidEras()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahDate.java | 128 private final transient int prolepticYear; field in HijrahDate 149 …static HijrahDate of(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in of() argument 150 return new HijrahDate(chrono, prolepticYear, monthOfYear, dayOfMonth); in of() 227 public static HijrahDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument 228 return HijrahChronology.INSTANCE.date(prolepticYear, month, dayOfMonth); in of() 262 … private HijrahDate(HijrahChronology chrono, int prolepticYear, int monthOfYear, int dayOfMonth) { in HijrahDate() argument 264 chrono.getEpochDay(prolepticYear, monthOfYear, dayOfMonth); in HijrahDate() 267 this.prolepticYear = prolepticYear; in HijrahDate() 281 this.prolepticYear = dateInfo[0]; in HijrahDate() 323 return chrono.getMonthLength(prolepticYear, monthOfYear); in lengthOfMonth() [all …]
|
D | HijrahChronology.java | 438 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 452 public HijrahDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 453 return HijrahDate.of(this, prolepticYear, month, dayOfMonth); in date() 469 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 483 public HijrahDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 484 HijrahDate date = HijrahDate.of(this, prolepticYear, 1, 1); in dateYearDay() 546 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 548 if (prolepticYear < getMinimumYear() || prolepticYear > getMaximumYear()) { in isLeapYear() 551 int len = getYearLength((int) prolepticYear); in isLeapYear() 556 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in HijrahChronology [all …]
|
D | MinguoChronology.java | 177 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 191 public MinguoDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 192 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in date() 208 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 221 public MinguoDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 222 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear)); in dateYearDay() 290 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 291 return IsoChronology.INSTANCE.isLeapYear(prolepticYear + YEARS_DIFFERENCE); in isLeapYear() 295 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in MinguoChronology
|
D | ThaiBuddhistChronology.java | 213 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 227 public ThaiBuddhistDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 228 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in date() 244 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 257 public ThaiBuddhistDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 258 … return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear)); in dateYearDay() 326 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 327 return IsoChronology.INSTANCE.isLeapYear(prolepticYear - YEARS_DIFFERENCE); in isLeapYear() 331 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in ThaiBuddhistChronology
|
D | IsoChronology.java | 188 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 204 public LocalDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 205 return LocalDate.of(prolepticYear, month, dayOfMonth); in date() 219 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 233 public LocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 234 return LocalDate.ofYearDay(prolepticYear, dayOfYear); in dateYearDay() 382 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 383 … return ((prolepticYear & 3) == 0) && ((prolepticYear % 100) != 0 || (prolepticYear % 400) == 0); in isLeapYear() 387 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in IsoChronology
|
D | Chronology.java | 312 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 325 ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth); in date() argument 343 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 355 ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear); in dateYearDay() argument 546 boolean isLeapYear(long prolepticYear); in isLeapYear() argument 564 int prolepticYear(Era era, int yearOfEra); in prolepticYear() method
|
D | ThaiBuddhistDate.java | 175 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument 176 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in of() 282 int prolepticYear = getProlepticYear(); in getLong() local 283 return (prolepticYear >= 1 ? prolepticYear : 1 - prolepticYear); in getLong()
|
D | MinguoDate.java | 175 public static MinguoDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument 176 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in of() 282 int prolepticYear = getProlepticYear(); in getLong() local 283 return (prolepticYear >= 1 ? prolepticYear : 1 - prolepticYear); in getLong()
|
D | JapaneseChronology.java | 232 public JapaneseDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 233 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in date() 277 public JapaneseDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 278 return new JapaneseDate(LocalDate.ofYearDay(prolepticYear, dayOfYear)); in dateYearDay() 346 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 347 return IsoChronology.INSTANCE.isLeapYear(prolepticYear); in isLeapYear() 351 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in JapaneseChronology
|
D | JapaneseDate.java | 248 public static JapaneseDate of(int prolepticYear, int month, int dayOfMonth) { in of() argument 249 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in of() 588 int year = JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra); in withYear()
|
D | AbstractChronology.java | 525 addFieldValue(fieldValues, YEAR, prolepticYear(eraObj, yoe)); in resolveYearOfEra() 530 addFieldValue(fieldValues, YEAR, prolepticYear(chronoDate.getEra(), yoe)); in resolveYearOfEra() 541 addFieldValue(fieldValues, YEAR, prolepticYear(eraObj, yoe)); in resolveYearOfEra()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 95 public ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth) { in date() argument 100 public ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() argument 115 public boolean isLeapYear(long prolepticYear) { in isLeapYear() argument 120 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() method in ChronologyTest.DummyChronology
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronology.java | 181 assertEquals(JAPANESE.prolepticYear(era, yearOfEra), gregorianYear); in test_transitions() 212 int year = JAPANESE.prolepticYear(era, yearOfEra); in test_invalidEraYear()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKYear.java | 796 int prolepticYear = IsoChronology.INSTANCE.prolepticYear(IsoEra.of(0), 5); in test_with() local 798 assertEquals(result.get(ChronoField.YEAR), prolepticYear); in test_with() local
|