Home
last modified time | relevance | path

Searched refs:jdate (Results 1 – 7 of 7) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DJulianCalendar.java186 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/
DJapaneseDate.java222 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 …]
DJapaneseChronology.java362 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/
DJapaneseImperialCalendar.java300 private transient LocalGregorianCalendar.Date jdate; field in JapaneseImperialCalendar
324 jdate = jcal.newCalendarDate(zone); in JapaneseImperialCalendar()
337 jdate = jcal.newCalendarDate(zone); in JapaneseImperialCalendar()
374 return super.hashCode() ^ jdate.hashCode(); in hashCode()
420 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add()
428 LocalGregorianCalendar.Date d = (LocalGregorianCalendar.Date) jdate.clone(); in add()
603 d.setEra(jdate.getEra()); in roll()
641 if (!isTransitionYear(jdate.getNormalizedYear())) { in roll()
642 int year = jdate.getYear(); in roll()
708 int eraIndex = getEraIndex(jdate); in roll()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKThaiBuddhistChronology.java201 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 …]
DTCKJapaneseChronology.java407 JapaneseDate jdate = JapaneseDate.now(); in test_isLeapYear() local
408jdate = jdate.with(ChronoField.YEAR, expectedProlepticYear).with(ChronoField.MONTH_OF_YEAR, 2); in test_isLeapYear()
410 assertEquals(jdate.lengthOfMonth(), 29); in test_isLeapYear()
412 assertEquals(jdate.lengthOfMonth(), 28); in test_isLeapYear()
525 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1926, 1, 4); in test_adjust_toLocalDate() local
526 JapaneseDate test = jdate.with(LocalDate.of(2012, 7, 6)); in test_adjust_toLocalDate()
532 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1926, 1, 4); in test_adjust_toMonth() local
533 jdate.with(Month.APRIL); in test_adjust_toMonth()
541 JapaneseDate jdate = JapaneseChronology.INSTANCE.date(1928, 10, 29); in test_LocalDate_adjustToJapaneseDate() local
542 LocalDate test = LocalDate.MIN.with(jdate); in test_LocalDate_adjustToJapaneseDate()
[all …]
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestJapaneseChronology.java222 JapaneseDate jdate = JapaneseDate.of(era, yearOfEra, month, dayOfMonth); in test_invalidDate() local