/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | JulianCalendar.java | 186 Date jdate = (Date) date; in getCalendarDateFromFixedDate() local 194 int priorDays = (int)(fixedDate - getFixedDate(year, JANUARY, 1, jdate)); in getCalendarDateFromFixedDate() 196 if (fixedDate >= getFixedDate(year, MARCH, 1, jdate)) { in getCalendarDateFromFixedDate() 205 int dayOfMonth = (int)(fixedDate - getFixedDate(year, month, 1, jdate)) + 1; in getCalendarDateFromFixedDate() 208 jdate.setNormalizedYear(year); in getCalendarDateFromFixedDate() 209 jdate.setMonth(month); in getCalendarDateFromFixedDate() 210 jdate.setDayOfMonth(dayOfMonth); in getCalendarDateFromFixedDate() 211 jdate.setDayOfWeek(dayOfWeek); in getCalendarDateFromFixedDate() 212 jdate.setLeapYear(isLeap); in getCalendarDateFromFixedDate() 213 jdate.setNormalized(true); in getCalendarDateFromFixedDate()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseDate.java | 222 LocalGregorianCalendar.Date jdate = JapaneseChronology.JCAL.newCalendarDate(null); in of() local 223 jdate.setEra(era.getPrivateEra()).setDate(yearOfEra, month, dayOfMonth); in of() 224 if (!JapaneseChronology.JCAL.validate(jdate)) { in of() 227 LocalDate date = LocalDate.of(jdate.getNormalizedYear(), month, dayOfMonth); in of() 280 LocalGregorianCalendar.Date jdate = JapaneseChronology.JCAL.newCalendarDate(null); in ofYearDay() local 281 jdate.setEra(era.getPrivateEra()); in ofYearDay() 283 jdate.setDate(yearOfEra, firstDay.getMonth(), firstDay.getDayOfMonth() + dayOfYear - 1); in ofYearDay() 285 jdate.setDate(yearOfEra, 1, dayOfYear); in ofYearDay() 287 JapaneseChronology.JCAL.normalize(jdate); in ofYearDay() 288 if (era.getPrivateEra() != jdate.getEra() || yearOfEra != jdate.getYear()) { in ofYearDay() [all …]
|
D | JapaneseChronology.java | 362 LocalGregorianCalendar.Date jdate = JCAL.newCalendarDate(null); in prolepticYear() local 363 jdate.setEra(jera.getPrivateEra()).setDate(yearOfEra, 1, 1); in prolepticYear() 364 if (JapaneseChronology.JCAL.validate(jdate)) { in prolepticYear()
|
/libcore/ojluni/src/main/java/java/util/ |
D | JapaneseImperialCalendar.java | 299 private transient LocalGregorianCalendar.Date jdate; field in JapaneseImperialCalendar 323 jdate = jcal.newCalendarDate(zone); in JapaneseImperialCalendar() 336 jdate = jcal.newCalendarDate(zone); in JapaneseImperialCalendar() 373 return super.hashCode() ^ jdate.hashCode(); in hashCode() 419 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() 427 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add() 602 d.setEra(jdate.getEra()); in roll() 640 if (!isTransitionYear(jdate.getNormalizedYear())) { in roll() 641 int year = jdate.getYear(); in roll() 707 int eraIndex = getEraIndex(jdate); in roll() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistChronology.java | 201 public void test_toLocalDate(ThaiBuddhistDate jdate, LocalDate iso) { in test_toLocalDate() argument 202 assertEquals(LocalDate.from(jdate), iso); in test_toLocalDate() 206 public void test_fromCalendrical(ThaiBuddhistDate jdate, LocalDate iso) { in test_fromCalendrical() argument 207 assertEquals(ThaiBuddhistChronology.INSTANCE.date(iso), jdate); in test_fromCalendrical() local 208 assertEquals(ThaiBuddhistDate.from(iso), jdate); in test_fromCalendrical() local 212 public void test_isEqual(ThaiBuddhistDate jdate, LocalDate iso) { in test_isEqual() argument 213 assertTrue(jdate.isEqual(iso)); in test_isEqual() 217 public void test_date_equals(ThaiBuddhistDate jdate, LocalDate iso) { in test_date_equals() argument 218 assertFalse(jdate.equals(iso)); in test_date_equals() 219 assertNotEquals(jdate.hashCode(), iso.hashCode()); in test_date_equals() [all …]
|
D | TCKJapaneseChronology.java | 402 JapaneseDate jdate = JapaneseDate.now(); in test_isLeapYear() local 403 … jdate = jdate.with(ChronoField.YEAR, expectedProlepticYear).with(ChronoField.MONTH_OF_YEAR, 2); in test_isLeapYear() 405 assertEquals(jdate.lengthOfMonth(), 29); in test_isLeapYear() 407 assertEquals(jdate.lengthOfMonth(), 28); in test_isLeapYear() 520 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1926, 1, 4); in test_adjust_toLocalDate() local 521 JapaneseDate test = jdate.with(LocalDate.of(2012, 7, 6)); in test_adjust_toLocalDate() 527 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1926, 1, 4); in test_adjust_toMonth() local 528 jdate.with(Month.APRIL); in test_adjust_toMonth() 536 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1928, 10, 29); in test_LocalDate_adjustToJapaneseDate() local 537 LocalDate test = LocalDate.MIN.with(jdate); in test_LocalDate_adjustToJapaneseDate() [all …]
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronology.java | 206 JapaneseDate jdate = JapaneseDate.of(era, yearOfEra, month, dayOfMonth); in test_invalidDate() local
|