Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/time/chrono/
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 …]
DThaiBuddhistDate.java100 public final class ThaiBuddhistDate class
101 extends ChronoLocalDateImpl<ThaiBuddhistDate>
127 public static ThaiBuddhistDate now() { in now()
143 public static ThaiBuddhistDate now(ZoneId zone) { in now()
158 public static ThaiBuddhistDate now(Clock clock) { in now()
159 return new ThaiBuddhistDate(LocalDate.now(clock)); in now()
176 public static ThaiBuddhistDate of(int prolepticYear, int month, int dayOfMonth) { in of()
177 … return new ThaiBuddhistDate(LocalDate.of(prolepticYear - YEARS_DIFFERENCE, month, dayOfMonth)); in of()
197 public static ThaiBuddhistDate from(TemporalAccessor temporal) { in from()
207 ThaiBuddhistDate(LocalDate isoDate) { in ThaiBuddhistDate() method in ThaiBuddhistDate
[all …]
DThaiBuddhistEra.java173 .format(this == BE ? ThaiBuddhistDate.of(1, 1, 1) : ThaiBuddhistDate.of(0, 1, 1)); in getDisplayName()
DSer.java187 ((ThaiBuddhistDate) object).writeExternal(out); in writeInternal()
256 case THAIBUDDHIST_DATE_TYPE: return ThaiBuddhistDate.readExternal(in); in readInternal()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistDateTest.java31 import java.time.chrono.ThaiBuddhistDate;
38 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_thaiBuddhistChronologyPeriod()
42 assertEquals(ThaiBuddhistDate.of(2482, 11, 30), date.minus(period)); in minus_thaiBuddhistChronologyPeriod()
47 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_thaiBuddhistChronologyPeriod_withNegative()
51 assertEquals(ThaiBuddhistDate.of(2483, 2, 2), date.minus(period)); in minus_thaiBuddhistChronologyPeriod_withNegative()
56 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_javaTimePeriod_shouldThrowDateTimeException()
68 ThaiBuddhistDate date = ThaiBuddhistDate.of(2484, 1, 1); in minus_javaTimeDuration_shouldThrowDateTimeException()
81 ThaiBuddhistDate.now().minus(null); in minusNull_shouldThrowNpe()
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;
659 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_zonedDateTime()
711 {ThaiBuddhistDate.of(2012 + 543, 2, 29), null, null, DateTimeException.class}, in data_localDateTime()
757 {HijrahDate.of(1350,5,15), ThaiBuddhistDate.of(2474,9,28)}, in data_hijrahToThai()
758 {HijrahDate.of(1434,5,1), ThaiBuddhistDate.of(2556,3,13)}, in data_hijrahToThai()
759 {HijrahDate.of(1436,1,1), ThaiBuddhistDate.of(2557,10,25)}, in data_hijrahToThai()
760 {HijrahDate.of(1500,6,12), ThaiBuddhistDate.of(2620,5,5)}, in data_hijrahToThai()
761 {HijrahDate.of(1550,3,11), ThaiBuddhistDate.of(2668,8,11)}, in data_hijrahToThai()
767 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.java37 import java.time.chrono.ThaiBuddhistDate;
82 … assertEquals(IsoFields.WEEK_OF_WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WOWBY_isSupportedBy_fieldsDiffer()
83 … assertEquals(WeekFields.ISO.weekOfWeekBasedYear().isSupportedBy(ThaiBuddhistDate.now()), true); in test_WOWBY_isSupportedBy_fieldsDiffer()
123 assertEquals(IsoFields.WEEK_BASED_YEAR.isSupportedBy(ThaiBuddhistDate.now()), false); in test_WBY_isSupportedBy_ISO()
129 assertEquals(IsoFields.WEEK_BASED_YEARS.isSupportedBy(ThaiBuddhistDate.now()),false); in test_Unit_isSupportedBy_ISO()
131 assertEquals(IsoFields.QUARTER_YEARS.isSupportedBy(ThaiBuddhistDate.now()),false); in test_Unit_isSupportedBy_ISO()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestTextParserWithLocale.java74 import java.time.chrono.ThaiBuddhistDate;
196 { ThaiBuddhistDate.now() }}; in provider_chronoLocalDate()
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/temporal/
DTCKIsoFields.java74 import java.time.chrono.ThaiBuddhistDate;
466 field.rangeRefinedBy(ThaiBuddhistDate.now()); in test_nonisofields_rangerefinedby()
480 field.getFrom(ThaiBuddhistDate.now()); in test_nonisofields_getFrom()
/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/api/
Dcurrent.txt12551 method public java.time.chrono.ThaiBuddhistDate date(java.time.chrono.Era, int, int, int);
12552 method public java.time.chrono.ThaiBuddhistDate date(int, int, int);
12553 method public java.time.chrono.ThaiBuddhistDate date(java.time.temporal.TemporalAccessor);
12554 method public java.time.chrono.ThaiBuddhistDate dateEpochDay(long);
12555 method public java.time.chrono.ThaiBuddhistDate dateNow();
12556 method public java.time.chrono.ThaiBuddhistDate dateNow(java.time.ZoneId);
12557 method public java.time.chrono.ThaiBuddhistDate dateNow(java.time.Clock);
12558 method public java.time.chrono.ThaiBuddhistDate dateYearDay(java.time.chrono.Era, int, int);
12559 method public java.time.chrono.ThaiBuddhistDate dateYearDay(int, int);
12565 …method public java.time.chrono.ChronoLocalDateTime<java.time.chrono.ThaiBuddhistDate> localDateTim…
[all …]
/libcore/
Dopenjdk_java_files.bp838 "ojluni/src/main/java/java/time/chrono/ThaiBuddhistDate.java",
DEXPECTED_UPSTREAM850 …n/java/java/time/chrono/ThaiBuddhistDate.java,jdk17u/jdk-17.0.6-ga,src/java.base/share/classes/jav…