Home
last modified time | relevance | path

Searched refs:thaiDate (Results 1 – 2 of 2) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestThaiBuddhistChronoImpl.java100 ThaiBuddhistDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(isoStartDate); in test_ThaiBuddhistChrono_vsCalendar() local
103 cal.set(Calendar.YEAR, thaiDate.get(ChronoField.YEAR)); in test_ThaiBuddhistChrono_vsCalendar()
104 cal.set(Calendar.MONTH, thaiDate.get(ChronoField.MONTH_OF_YEAR) - 1); in test_ThaiBuddhistChrono_vsCalendar()
105 cal.set(Calendar.DAY_OF_MONTH, thaiDate.get(ChronoField.DAY_OF_MONTH)); in test_ThaiBuddhistChrono_vsCalendar()
107 while (thaiDate.isBefore(isoEndDate)) { in test_ThaiBuddhistChrono_vsCalendar()
108 …assertEquals(thaiDate.get(ChronoField.DAY_OF_MONTH), cal.get(Calendar.DAY_OF_MONTH), "Day mismatch… in test_ThaiBuddhistChrono_vsCalendar()
109 …assertEquals(thaiDate.get(ChronoField.MONTH_OF_YEAR), cal.get(Calendar.MONTH) + 1, "Month mismatch… in test_ThaiBuddhistChrono_vsCalendar() local
110 …assertEquals(thaiDate.get(ChronoField.YEAR_OF_ERA), cal.get(Calendar.YEAR), "Year mismatch in " + in test_ThaiBuddhistChrono_vsCalendar() local
112 thaiDate = thaiDate.plus(1, ChronoUnit.DAYS); in test_ThaiBuddhistChrono_vsCalendar()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java212 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_addTo_wrongChrono() local
215 period.addTo(thaiDate); in test_addTo_wrongChrono()
230 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_subtractFrom_wrongChrono() local
233 period.subtractFrom(thaiDate); in test_subtractFrom_wrongChrono()