/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronology.java | 196 …public void test_transitions(JapaneseEra era, int yearOfEra, int month, int dayOfMonth, int gregor… in test_transitions() argument 197 assertEquals(JAPANESE.prolepticYear(era, yearOfEra), gregorianYear); in test_transitions() 199 JapaneseDate jdate1 = JapaneseDate.of(era, yearOfEra, month, dayOfMonth); in test_transitions() 214 …public void test_firstDayOfEra(JapaneseEra era, int yearOfEra, int dayOfYear, int month, int dayOf… in test_firstDayOfEra() argument 215 JapaneseDate date1 = JAPANESE.dateYearDay(era, yearOfEra, dayOfYear); in test_firstDayOfEra() 216 JapaneseDate date2 = JAPANESE.date(era, yearOfEra, month, dayOfMonth); in test_firstDayOfEra() 221 public void test_invalidDate(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in test_invalidDate() argument 222 JapaneseDate jdate = JapaneseDate.of(era, yearOfEra, month, dayOfMonth); in test_invalidDate() 223 …System.out.printf("No DateTimeException with %s %d.%02d.%02d%n", era, yearOfEra, month, dayOfMonth… in test_invalidDate() 227 public void test_invalidEraYear(JapaneseEra era, int yearOfEra) { in test_invalidEraYear() argument [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseDate.java | 140 private transient int yearOfEra; field in JapaneseDate 220 public static JapaneseDate of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in of() argument 223 jdate.setEra(era.getPrivateEra()).setDate(yearOfEra, month, dayOfMonth); in of() 228 return new JapaneseDate(era, yearOfEra, date); in of() 277 static JapaneseDate ofYearDay(JapaneseEra era, int yearOfEra, int dayOfYear) { in ofYearDay() argument 282 if (yearOfEra == 1) { in ofYearDay() 283 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay() 285 jdate.setDate(yearOfEra, 1, dayOfYear); in ofYearDay() 288 if (era.getPrivateEra() != jdate.getEra() || yearOfEra != jdate.getYear()) { in ofYearDay() 293 return new JapaneseDate(era, yearOfEra, localdate); in ofYearDay() [all …]
|
D | MinguoChronology.java | 176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 177 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 208 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 295 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 299 return (era == MinguoEra.ROC ? yearOfEra : 1 - yearOfEra); in prolepticYear()
|
D | ThaiBuddhistChronology.java | 212 public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 213 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 244 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 331 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 335 return (era == ThaiBuddhistEra.BE ? yearOfEra : 1 - yearOfEra); in prolepticYear()
|
D | JapaneseChronology.java | 211 public JapaneseDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 215 return JapaneseDate.of((JapaneseEra) era, yearOfEra, month, dayOfMonth); in date() 259 public JapaneseDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 260 return JapaneseDate.ofYearDay((JapaneseEra) era, yearOfEra, dayOfYear); in dateYearDay() 351 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 357 int gregorianYear = jera.getPrivateEra().getSinceDate().getYear() + yearOfEra - 1; in prolepticYear() 358 if (yearOfEra == 1) { in prolepticYear() 363 jdate.setEra(jera.getPrivateEra()).setDate(yearOfEra, 1, 1); in prolepticYear() 468 private int prolepticYearLenient(JapaneseEra era, int yearOfEra) { in prolepticYearLenient() argument 469 return era.getPrivateEra().getSinceDate().getYear() + yearOfEra - 1; in prolepticYearLenient()
|
D | Chronology.java | 311 default ChronoLocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 312 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 343 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 564 int prolepticYear(Era era, int yearOfEra); in prolepticYear() argument
|
D | IsoChronology.java | 187 public LocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 188 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 218 public LocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 219 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 387 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 391 return (era == IsoEra.CE ? yearOfEra : 1 - yearOfEra); in prolepticYear()
|
D | HijrahChronology.java | 437 public HijrahDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() argument 438 return date(prolepticYear(era, yearOfEra), month, dayOfMonth); in date() 468 public HijrahDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() argument 469 return dateYearDay(prolepticYear(era, yearOfEra), dayOfYear); in dateYearDay() 556 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 560 return yearOfEra; in prolepticYear()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | CopticChronology.java | 212 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument 216 return (era == CopticEra.AM ? yearOfEra : 1 - yearOfEra); in prolepticYear()
|
D | TCKJapaneseChronology.java | 395 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument 399 … assertEquals(JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 403 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument 434 public void test_prolepticYearError(Era era, int yearOfEra) { in test_prolepticYearError() argument 435 JapaneseChronology.INSTANCE.prolepticYear(era, yearOfEra); in test_prolepticYearError()
|
D | TCKThaiBuddhistChronology.java | 303 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument 307 …assertEquals(ThaiBuddhistChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 311 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument
|
D | TCKMinguoChronology.java | 296 …public void test_prolepticYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, b… in test_prolepticYear() argument 300 … assertEquals(MinguoChronology.INSTANCE.prolepticYear(era, yearOfEra), expectedProlepticYear); in test_prolepticYear() 304 …public void test_isLeapYear(int eraValue, Era era, int yearOfEra, int expectedProlepticYear, bool… in test_isLeapYear() argument
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 120 public int prolepticYear(Era era, int yearOfEra) { in prolepticYear() argument
|