Home
last modified time | relevance | path

Searched refs:MinguoDate (Results 1 – 17 of 17) sorted by relevance

/libcore/luni/src/test/java/libcore/java/time/chrono/
DMinguoDateTest.java30 import java.time.chrono.MinguoDate;
40 MinguoDate.now().minus(null); in minus_null_throwsNpe()
49 MinguoDate date = MinguoDate.of(110, 1, 1); in minus_days()
51 assertEquals(MinguoDate.of(109, 12, 31), date.minus(1, ChronoUnit.DAYS)); in minus_days()
57 MinguoDate.now().minus(Duration.ofDays(1)); in minus_Duration_throws_UnsupportedTemporalTypeException()
67 MinguoDate.now().minus(Period.ofDays(1)); in minus_Period_throws_DateTimeException()
76 MinguoDate date = MinguoDate.of(110, 1, 1); in minus_minguoPeriod()
78 assertEquals(MinguoDate.of(108, 11, 30), in minus_minguoPeriod()
84 MinguoDate date = MinguoDate.of(110, 2, 28); in minus_minguoPeriod_withNegative()
86 assertEquals(MinguoDate.of(109, 3, 29), in minus_minguoPeriod_withNegative()
[all …]
DMinguoChronologyTest.java23 import java.time.chrono.MinguoDate;
74 assertSame(MinguoChronology.INSTANCE, MinguoDate.now().getChronology()); in test_MinguoDate_getChronology()
79 assertEquals(MinguoEra.BEFORE_ROC, MinguoDate.of(-1, 1, 1).getEra()); in test_MinguoDate_getEra()
80 assertEquals(MinguoEra.ROC, MinguoDate.of(1, 1, 1).getEra()); in test_MinguoDate_getEra()
85 MinguoDate dates[] = new MinguoDate[] { in test_MinguoDate_range()
86 MinguoDate.from(LocalDate.of(2000, 2, 1)), //February of a leap year in test_MinguoDate_range()
87 MinguoDate.from(LocalDate.of(2001, 2, 1)), //February of a non-leap year in test_MinguoDate_range()
88 MinguoDate.of(1, 2, 3), in test_MinguoDate_range()
89 MinguoDate.of(4, 5, 6), in test_MinguoDate_range()
90 MinguoDate.of(-7, 8, 9) in test_MinguoDate_range()
[all …]
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoChronology.java176 public MinguoDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date()
191 public MinguoDate date(int prolepticYear, int month, int dayOfMonth) { in date()
192 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in date()
207 public MinguoDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay()
221 public MinguoDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay()
222 return new MinguoDate(LocalDate.ofYearDay(prolepticYear + YEARS_DIFFERENCE, dayOfYear)); in dateYearDay()
233 public MinguoDate dateEpochDay(long epochDay) { in dateEpochDay()
234 return new MinguoDate(LocalDate.ofEpochDay(epochDay)); in dateEpochDay()
238 public MinguoDate dateNow() { in dateNow()
243 public MinguoDate dateNow(ZoneId zone) { in dateNow()
[all …]
DMinguoDate.java100 public final class MinguoDate class
101 extends ChronoLocalDateImpl<MinguoDate>
127 public static MinguoDate now() { in now()
143 public static MinguoDate now(ZoneId zone) { in now()
158 public static MinguoDate now(Clock clock) { in now()
159 return new MinguoDate(LocalDate.now(clock)); in now()
176 public static MinguoDate of(int prolepticYear, int month, int dayOfMonth) { in of()
177 return new MinguoDate(LocalDate.of(prolepticYear + YEARS_DIFFERENCE, month, dayOfMonth)); in of()
197 public static MinguoDate from(TemporalAccessor temporal) { in from()
207 MinguoDate(LocalDate isoDate) { in MinguoDate() method in MinguoDate
[all …]
DMinguoEra.java173 .format(this == ROC ? MinguoDate.of(1, 1, 1) : MinguoDate.of(0, 1, 1)); in getDisplayName()
DSer.java184 ((MinguoDate) object).writeExternal(out); in writeInternal()
255 case MINGUO_DATE_TYPE: return MinguoDate.readExternal(in); in readInternal()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKMinguoChronology.java86 import java.time.chrono.MinguoDate;
164 public void test_toLocalDate(MinguoDate minguo, LocalDate iso) { in test_toLocalDate()
169 public void test_fromCalendrical(MinguoDate minguo, LocalDate iso) { in test_fromCalendrical()
171 assertEquals(MinguoDate.from(iso), minguo); in test_fromCalendrical()
175 public void test_isEqual(MinguoDate minguo, LocalDate iso) { in test_isEqual()
180 public void test_date_equals(MinguoDate minguo, LocalDate iso) { in test_date_equals()
187 assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoDate.now()) ; in test_dateNow()
188 assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoDate.now(ZoneId.systemDefault())) ; in test_dateNow()
189 … assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoDate.now(Clock.systemDefaultZone())) ; in test_dateNow()
190 …assertEquals(MinguoChronology.INSTANCE.dateNow(), MinguoDate.now(Clock.systemDefaultZone().getZone… in test_dateNow()
[all …]
DTCKThaiBuddhistChronology.java84 import java.time.chrono.MinguoDate;
477 MinguoDate ldate2 = MinguoChronology.INSTANCE.date(mdate2); in test_periodUntilDiffChrono()
DTCKJapaneseChronology.java90 import java.time.chrono.MinguoDate;
643 MinguoDate ldate2 = MinguoChronology.INSTANCE.date(mdate2); in test_periodUntilDiffChrono()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestReducedPrinter.java68 import java.time.chrono.MinguoDate;
216 MinguoDate date = MinguoDate.of(109, 6, 30); in test_minguoChrono_fixedWidth()
218 date = MinguoDate.of(110, 6, 30); in test_minguoChrono_fixedWidth()
220 date = MinguoDate.of(199, 6, 30); in test_minguoChrono_fixedWidth()
222 date = MinguoDate.of(200, 6, 30); in test_minguoChrono_fixedWidth()
224 date = MinguoDate.of(209, 6, 30); in test_minguoChrono_fixedWidth()
226 date = MinguoDate.of(210, 6, 30); in test_minguoChrono_fixedWidth()
233 MinguoDate date = MinguoDate.of(109, 6, 30); in test_minguoChrono_extendedWidth()
235 date = MinguoDate.of(110, 6, 30); in test_minguoChrono_extendedWidth()
237 date = MinguoDate.of(199, 6, 30); in test_minguoChrono_extendedWidth()
[all …]
DTestTextParserWithLocale.java73 import java.time.chrono.MinguoDate;
195 { MinguoDate.now() }, in provider_chronoLocalDate()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKChronoLocalDateSerialization.java71 import java.time.chrono.MinguoDate;
100 {MinguoDate.of(102, 01, 05), MINGUO_DATE_TYPE}, in data_of_calendars()
174 {MinguoDate.class}, in invalid_serial_classes()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestUmmAlQuraChronology.java56 import java.time.chrono.MinguoDate;
353 MinguoDate m = MinguoChronology.INSTANCE.date(h2); in test_periodUntilDiffChrono()
739 {HijrahDate.of(1350,5,15), MinguoDate.of(20,9,28)}, in data_hijrahToMinguo()
740 {HijrahDate.of(1434,5,1), MinguoDate.of(102,3,13)}, in data_hijrahToMinguo()
741 {HijrahDate.of(1436,1,1), MinguoDate.of(103,10,25)}, in data_hijrahToMinguo()
742 {HijrahDate.of(1500,6,12), MinguoDate.of(166,5,5)}, in data_hijrahToMinguo()
743 {HijrahDate.of(1550,3,11), MinguoDate.of(214,8,11)}, in data_hijrahToMinguo()
749 public void test_hijrahToMinguo(HijrahDate hijrah, MinguoDate minguo) { in test_hijrahToMinguo()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java113 import java.time.chrono.MinguoDate;
1002 MinguoDate mdt = MinguoDate.of(100, 6, 30); in test_fieldResolvesToChronoLocalDate_overrideChrono_matches()
1039 MinguoDate mdt = MinguoDate.of(100, 6, 30); in test_fieldResolvesToChronoLocalDateTime_overrideChrono_matches()
1077 MinguoDate mdt = MinguoDate.of(100, 6, 30); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_matches()
1078 ChronoZonedDateTime<MinguoDate> mzdt = mdt.atTime(LocalTime.NOON).atZone(EUROPE_PARIS); in test_fieldResolvesToChronoZonedDateTime_overrideChrono_matches()
/libcore/api/
Dcurrent.txt12496 method public java.time.chrono.MinguoDate date(java.time.chrono.Era, int, int, int);
12497 method public java.time.chrono.MinguoDate date(int, int, int);
12498 method public java.time.chrono.MinguoDate date(java.time.temporal.TemporalAccessor);
12499 method public java.time.chrono.MinguoDate dateEpochDay(long);
12500 method public java.time.chrono.MinguoDate dateNow();
12501 method public java.time.chrono.MinguoDate dateNow(java.time.ZoneId);
12502 method public java.time.chrono.MinguoDate dateNow(java.time.Clock);
12503 method public java.time.chrono.MinguoDate dateYearDay(java.time.chrono.Era, int, int);
12504 method public java.time.chrono.MinguoDate dateYearDay(int, int);
12510 …method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.MinguoDate> localDateTime(java…
[all …]
/libcore/
Dopenjdk_java_files.bp846 "ojluni/src/main/java/java/time/chrono/MinguoDate.java",
DEXPECTED_UPSTREAM846 …rc/main/java/java/time/chrono/MinguoDate.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…