/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ThaiBuddhistDate.java | 100 public final class ThaiBuddhistDate class 101 extends ChronoLocalDateImpl<ThaiBuddhistDate> 126 public static ThaiBuddhistDate now() { in now() 142 public static ThaiBuddhistDate now(ZoneId zone) { in now() 157 public static ThaiBuddhistDate now(Clock clock) { in now() 158 return new ThaiBuddhistDate(LocalDate.now(clock)); in now() 175 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) { in of() 176 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in of() 196 public static ThaiBuddhistDate from(TemporalAccessor temporal) { in from() 206 ThaiBuddhistDate(LocalDate isoDate) { in ThaiBuddhistDate() method in ThaiBuddhistDate [all …]
|
D | ThaiBuddhistChronology.java | 212 public ThaiBuddhistDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() 227 public ThaiBuddhistDate date(int prolepticYear, int month, int dayOfMonth) { in date() 228 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in date() 243 public ThaiBuddhistDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() 257 public ThaiBuddhistDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() 258 … return new ThaiBuddhistDate(LocalDate.ofYearDay(prolepticYear - YEARS_DIFFERENCE, dayOfYear)); in dateYearDay() 269 public ThaiBuddhistDate dateEpochDay(long epochDay) { in dateEpochDay() 270 return new ThaiBuddhistDate(LocalDate.ofEpochDay(epochDay)); in dateEpochDay() 274 public ThaiBuddhistDate dateNow() { in dateNow() 279 public ThaiBuddhistDate dateNow(ZoneId zone) { in dateNow() [all …]
|
D | Ser.java | 185 ((ThaiBuddhistDate) object).writeExternal(out); in writeInternal() 241 case THAIBUDDHIST_DATE_TYPE: return ThaiBuddhistDate.readExternal(in); in readInternal()
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ThaiBuddhistChronologyTest.java | 20 import java.time.chrono.ThaiBuddhistDate; 74 assertSame(ThaiBuddhistChronology.INSTANCE, ThaiBuddhistDate.now().getChronology()); in test_ThaiBuddhistDate_getChronology() 79 assertEquals(ThaiBuddhistEra.BEFORE_BE, ThaiBuddhistDate.of(-1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra() 80 assertEquals(ThaiBuddhistEra.BE, ThaiBuddhistDate.of(1, 1, 1).getEra()); in test_ThaiBuddhistDate_getEra() 85 ThaiBuddhistDate dates[] = new ThaiBuddhistDate[] { in test_ThaiBuddhistDate_range() 86 ThaiBuddhistDate.from(LocalDate.of(2000, 2, 1)), //February of a leap year in test_ThaiBuddhistDate_range() 87 ThaiBuddhistDate.from(LocalDate.of(2001, 2, 1)), //February of a non-leap year in test_ThaiBuddhistDate_range() 88 ThaiBuddhistDate.of(1, 2, 3), in test_ThaiBuddhistDate_range() 89 ThaiBuddhistDate.of(4, 5, 6), in test_ThaiBuddhistDate_range() 90 ThaiBuddhistDate.of(-7, 8, 9) in test_ThaiBuddhistDate_range() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistChronology.java | 86 import java.time.chrono.ThaiBuddhistDate; 201 public void test_toLocalDate(ThaiBuddhistDate jdate, LocalDate iso) { in test_toLocalDate() 206 public void test_fromCalendrical(ThaiBuddhistDate jdate, LocalDate iso) { in test_fromCalendrical() 208 assertEquals(ThaiBuddhistDate.from(iso), jdate); in test_fromCalendrical() 212 public void test_isEqual(ThaiBuddhistDate jdate, LocalDate iso) { in test_isEqual() 217 public void test_date_equals(ThaiBuddhistDate jdate, LocalDate iso) { in test_date_equals() 224 assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistDate.now()) ; in test_dateNow() 225 …assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistDate.now(ZoneId.systemDefault(… in test_dateNow() 226 …assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistDate.now(Clock.systemDefaultZo… in test_dateNow() 227 …assertEquals(ThaiBuddhistChronology.INSTANCE.dateNow(), ThaiBuddhistDate.now(Clock.systemDefaultZo… in test_dateNow() [all …]
|
D | TCKMinguoChronology.java | 88 import java.time.chrono.ThaiBuddhistDate; 418 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_localDateTime() 452 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_zonedDateTime() 516 ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); in test_periodUntilDiffChrono()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 68 import java.time.chrono.ThaiBuddhistDate; 137 date = processClassOK(ThaiBuddhistDate.class); 140 date = processClassWeird(ThaiBuddhistDate.class); 145 ThaiBuddhistDate date = chrono.dateNow(); 146 date = ThaiBuddhistDate.now(); 148 date = processClassOK(ThaiBuddhistDate.class);
|
D | TestExampleCode.java | 71 import java.time.chrono.ThaiBuddhistDate; 149 ThaiBuddhistDate now1 = ThaiBuddhistDate.now(); in test_calendarPackageExample() 158 ThaiBuddhistDate first = now1 in test_calendarPackageExample() 161 ThaiBuddhistDate last = first in test_calendarPackageExample()
|
D | TestThaiBuddhistChronoImpl.java | 63 import java.time.chrono.ThaiBuddhistDate; 100 ThaiBuddhistDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(isoStartDate); in test_ThaiBuddhistChrono_vsCalendar()
|
D | TestUmmAlQuraChronology.java | 58 import java.time.chrono.ThaiBuddhistDate; 657 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_zonedDateTime() 709 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_localDateTime() 755 {HijrahDate.of(1350,5,15), ThaiBuddhistDate.of(2474,9,28)}, in data_hijrahToThai() 756 {HijrahDate.of(1434,5,1), ThaiBuddhistDate.of(2556,3,13)}, in data_hijrahToThai() 757 {HijrahDate.of(1436,1,1), ThaiBuddhistDate.of(2557,10,25)}, in data_hijrahToThai() 758 {HijrahDate.of(1500,6,12), ThaiBuddhistDate.of(2620,5,5)}, in data_hijrahToThai() 759 {HijrahDate.of(1550,3,11), ThaiBuddhistDate.of(2668,8,11)}, in data_hijrahToThai() 765 public void test_hijrahToThai(HijrahDate hijrah, ThaiBuddhistDate thai) { in test_hijrahToThai()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKChronoLocalDateSerialization.java | 72 import java.time.chrono.ThaiBuddhistDate; 101 {ThaiBuddhistDate.of(2556, 01, 05), THAIBUDDHIST_DATE_TYPE}, in data_of_calendars() 175 {ThaiBuddhistDate.class}, in invalid_serial_classes()
|
/libcore/ojluni/src/test/java/time/test/java/time/temporal/ |
D | TestIsoWeekFields.java | 35 import java.time.chrono.ThaiBuddhistDate; 80 … assertEquals(IsoFields.WEEK_OF_WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WOWBY_isSupportedBy_fieldsDiffer() 81 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer() 121 assertEquals(IsoFields.WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WBY_isSupportedBy_ISO()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestReducedParser.java | 81 import java.time.chrono.ThaiBuddhistDate; 450 ThaiBuddhistDate date = ThaiBuddhistDate.of(2543, 1, 1); in test_reducedWithLateChronoChange()
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
D | TCKDateTimeFormatter.java | 92 import java.time.chrono.ThaiBuddhistDate; 285 …ChronoZonedDateTime<ThaiBuddhistDate> thaiZdt = ThaiBuddhistChronology.INSTANCE.zonedDateTime(zdt); in data_format_withZone_withChronology()
|
/libcore/ |
D | openjdk_java_files.mk | 793 ojluni/src/main/java/java/time/chrono/ThaiBuddhistDate.java \
|