Home
last modified time | relevance | path

Searched refs:ThaiBuddhistDate (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DThaiBuddhistDate.java100 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 …]
DThaiBuddhistChronology.java212 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 …]
DSer.java185 ((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/
DThaiBuddhistChronologyTest.java20 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/
DTCKThaiBuddhistChronology.java86 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 …]
DTCKMinguoChronology.java88 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/
DTestChronoLocalDate.java68 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);
DTestExampleCode.java71 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()
DTestThaiBuddhistChronoImpl.java63 import java.time.chrono.ThaiBuddhistDate;
100 ThaiBuddhistDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(isoStartDate); in test_ThaiBuddhistChrono_vsCalendar()
DTestUmmAlQuraChronology.java58 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/
DTCKChronoLocalDateSerialization.java72 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/
DTestIsoWeekFields.java35 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/
DTestReducedParser.java81 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/
DTCKDateTimeFormatter.java92 import java.time.chrono.ThaiBuddhistDate;
285 …ChronoZonedDateTime<ThaiBuddhistDate> thaiZdt = ThaiBuddhistChronology.INSTANCE.zonedDateTime(zdt); in data_format_withZone_withChronology()
/libcore/
Dopenjdk_java_files.mk793 ojluni/src/main/java/java/time/chrono/ThaiBuddhistDate.java \