/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | JapaneseDateTest.java | 33 import java.time.chrono.JapaneseDate; 43 JapaneseDate.now().minus(null); in minus_null_throwsNpe() 52 JapaneseDate date = JapaneseDate.of(REIWA, 3, 5, 21); in minus_days() 54 assertEquals(JapaneseDate.of(REIWA, 3, 5, 20), date.minus(1, ChronoUnit.DAYS)); in minus_days() 59 JapaneseDate date = JapaneseDate.of(REIWA, 3, 5, 21); in minus_negative_days() 61 assertEquals(JapaneseDate.of(REIWA, 3, 5, 22), date.minus(-1, ChronoUnit.DAYS)); in minus_negative_days() 66 JapaneseDate date = JapaneseDate.of(REIWA, 1, 5, 1); in minus_days_crossEras() 68 assertEquals(JapaneseDate.of(HEISEI, 31, 4, 30), date.minus(1, ChronoUnit.DAYS)); in minus_days_crossEras() 74 JapaneseDate.now().minus(1, ChronoUnit.HOURS); in minus_less_than_day_throwsUnsupportedTemporalTypeException() 81 JapaneseDate.now().minus(1, ChronoUnit.MINUTES); in minus_less_than_day_throwsUnsupportedTemporalTypeException() [all …]
|
D | JapaneseChronologyTest.java | 32 import java.time.chrono.JapaneseDate; 52 ChronoZonedDateTime<JapaneseDate> result = JapaneseChronology.INSTANCE in test_zonedDateTime() 54 assertEquals(JapaneseDate.of(JapaneseEra.HEISEI, 29, 4, 1), result.toLocalDate()); in test_zonedDateTime() 71 assertSame(JapaneseChronology.INSTANCE, JapaneseDate.now().getChronology()); in test_JapaneseDate_getChronology() 78 assertEquals(JapaneseEra.MEIJI, JapaneseDate.from(LocalDate.of(1873, 1, 1)).getEra()); in test_JapaneseDate_getEra() 79 assertEquals(JapaneseEra.TAISHO, JapaneseDate.from(LocalDate.of(1913, 1, 1)).getEra()); in test_JapaneseDate_getEra() 80 assertEquals(SHOWA, JapaneseDate.from(LocalDate.of(1927, 1, 1)).getEra()); in test_JapaneseDate_getEra() 81 assertEquals(JapaneseEra.HEISEI, JapaneseDate.from(LocalDate.of(1990, 1, 1)).getEra()); in test_JapaneseDate_getEra() 86 JapaneseDate date = JapaneseDate.now(); in test_JapaneseDate_isSupported_TemporalField() 143 JapaneseDate heiseiDate = JapaneseChronology.INSTANCE.date(heisei); in test_JapaneseEras_calendarsDotProperties() [all …]
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseDate.java | 120 public final class JapaneseDate class 121 extends ChronoLocalDateImpl<JapaneseDate> 159 public static JapaneseDate now() { in now() 175 public static JapaneseDate now(ZoneId zone) { in now() 190 public static JapaneseDate now(Clock clock) { in now() 191 return new JapaneseDate(LocalDate.now(clock)); in now() 220 public static JapaneseDate of(JapaneseEra era, int yearOfEra, int month, int dayOfMonth) { in of() 228 return new JapaneseDate(era, yearOfEra, date); in of() 248 public static JapaneseDate of(int prolepticYear, int month, int dayOfMonth) { in of() 249 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in of() [all …]
|
D | JapaneseChronology.java | 211 public JapaneseDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() 215 return JapaneseDate.of((JapaneseEra) era, yearOfEra, month, dayOfMonth); in date() 232 public JapaneseDate date(int prolepticYear, int month, int dayOfMonth) { in date() 233 return new JapaneseDate(LocalDate.of(prolepticYear, month, dayOfMonth)); in date() 259 public JapaneseDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() 260 return JapaneseDate.ofYearDay((JapaneseEra) era, yearOfEra, dayOfYear); in dateYearDay() 277 public JapaneseDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() 278 return new JapaneseDate(LocalDate.ofYearDay(prolepticYear, dayOfYear)); in dateYearDay() 289 public JapaneseDate dateEpochDay(long epochDay) { in dateEpochDay() 290 return new JapaneseDate(LocalDate.ofEpochDay(epochDay)); in dateEpochDay() [all …]
|
D | Ser.java | 173 ((JapaneseDate) object).writeExternal(out); in writeInternal() 237 case JAPANESE_DATE_TYPE: return JapaneseDate.readExternal(in); in readInternal()
|
D | JapaneseEra.java | 64 import static java.time.chrono.JapaneseDate.MEIJI_6_ISODATE;
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKJapaneseChronology.java | 87 import java.time.chrono.JapaneseDate; 199 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.date(era, yoe, moy, dom); in test_createEymd() 200 JapaneseDate dateByDateFactory = JapaneseDate.of(era, yoe, moy, dom); in test_createEymd() 207 JapaneseDate dateByChronoFactory = JapaneseChronology.INSTANCE.dateYearDay(era, yoe, doy); in test_createEyd() 208 JapaneseDate dateByDateFactory = JapaneseDate.of(era, yoe, moy, dom); in test_createEyd() 215 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_isEqual() 222 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_chronologyTemporalFactory() 229 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_dateFrom() 231 assertEquals(JapaneseDate.from(iso), test); in test_createByEra_dateFrom() 236 JapaneseDate test = JapaneseDate.of(era, yoe, moy, dom); in test_createByEra_query() [all …]
|
D | TCKMinguoChronology.java | 83 import java.time.chrono.JapaneseDate; 417 {JapaneseDate.of(2012, 2, 29), null, null, DateTimeException.class}, in data_localDateTime() 451 {JapaneseDate.of(2012, 2, 29), null, null, DateTimeException.class}, in data_zonedDateTime()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateSerialization.java | 69 import java.time.chrono.JapaneseDate; 99 {JapaneseDate.of(JapaneseEra.HEISEI, 25, 01, 05), JAPANESE_DATE_TYPE}, in data_of_calendars() 173 {JapaneseDate.class}, in invalid_serial_classes()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestJapaneseChronoImpl.java | 67 import java.time.chrono.JapaneseDate; 105 JapaneseDate jDate = JapaneseChronology.INSTANCE.date(isoStartDate); in test_JapaneseChrono_vsCalendar() 134 JapaneseDate jd = JapaneseChronology.INSTANCE.dateYearDay(era, year, 1); in test_dayOfYearVsCalendar()
|
D | TestUmmAlQuraChronology.java | 54 import java.time.chrono.JapaneseDate; 658 {JapaneseDate.of(2012, 2, 29), null, null, DateTimeException.class}, in data_zonedDateTime() 710 {JapaneseDate.of(2012, 2, 29), null, null, DateTimeException.class}, in data_localDateTime()
|
/libcore/ |
D | openjdk_java_files.bp | 798 "ojluni/src/main/java/java/time/chrono/JapaneseDate.java",
|