Home
last modified time | relevance | path

Searched refs:ThaiBuddhistChronology (Results 1 – 25 of 29) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKThaiBuddhistChronology.java85 import java.time.chrono.ThaiBuddhistChronology;
116 Chronology c = ThaiBuddhistChronology.INSTANCE; in test_chrono_byName()
131 Assert.assertEquals(test, ThaiBuddhistChronology.INSTANCE); in test_chrono_byLocale_fullTag_thaiCalendarFromThai()
138 Assert.assertEquals(test, ThaiBuddhistChronology.INSTANCE); in test_chrono_byLocale_fullTag_thaiCalendarFromElsewhere()
168 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 1), LocalDate.of(1, 1, 1)}, in data_samples()
169 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 2), LocalDate.of(1, 1, 2)}, in data_samples()
170 {ThaiBuddhistChronology.INSTANCE.date(1 + YDIFF, 1, 3), LocalDate.of(1, 1, 3)}, in data_samples()
172 {ThaiBuddhistChronology.INSTANCE.date(2 + YDIFF, 1, 1), LocalDate.of(2, 1, 1)}, in data_samples()
173 {ThaiBuddhistChronology.INSTANCE.date(3 + YDIFF, 1, 1), LocalDate.of(3, 1, 1)}, in data_samples()
174 {ThaiBuddhistChronology.INSTANCE.date(3 + YDIFF, 12, 6), LocalDate.of(3, 12, 6)}, in data_samples()
[all …]
DTCKChronoPeriod.java79 import java.time.chrono.ThaiBuddhistChronology;
98 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
175 ChronoPeriod thaiPeriod = ThaiBuddhistChronology.INSTANCE.period(2, 3, 4); in test_plus_wrongChrono()
193 ChronoPeriod thaiPeriod = ThaiBuddhistChronology.INSTANCE.period(2, 3, 4); in test_minus_wrongChrono()
212 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_addTo_wrongChrono()
230 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_subtractFrom_wrongChrono()
DTCKChronology.java84 import java.time.chrono.ThaiBuddhistChronology;
199 {ThaiBuddhistChronology.INSTANCE, "buddhist"}, in data_CalendarType()
259 assertEquals(chrono.dateNow(), ThaiBuddhistChronology.INSTANCE.dateNow()); in test_ThaiBuddhistChronology_dateNow()
260 … assertEquals(chrono.dateNow(zoneId_paris), ThaiBuddhistChronology.INSTANCE.dateNow(zoneId_paris)); in test_ThaiBuddhistChronology_dateNow()
261 assertEquals(chrono.dateNow(clock), ThaiBuddhistChronology.INSTANCE.dateNow(clock)); in test_ThaiBuddhistChronology_dateNow()
308 … assertEquals(date1, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60)); in test_ThaiBuddhistChronology_dateYearDay()
309 … assertEquals(date2, ThaiBuddhistChronology.INSTANCE.dateYearDay(ThaiBuddhistEra.BE, 2459, 60)); in test_ThaiBuddhistChronology_dateYearDay()
DTCKThaiBuddhistEra.java64 import java.time.chrono.ThaiBuddhistChronology;
102 List<Era> eraList = ThaiBuddhistChronology.INSTANCE.eras(); in test_values()
DTCKChronoLocalDate.java77 import java.time.chrono.ThaiBuddhistChronology;
110 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
DTCKChronoLocalDateTime.java78 import java.time.chrono.ThaiBuddhistChronology;
110 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
DTCKChronoZonedDateTime.java79 import java.time.chrono.ThaiBuddhistChronology;
111 {ThaiBuddhistChronology.INSTANCE}, in data_of_calendars()
DTCKMinguoChronology.java87 import java.time.chrono.ThaiBuddhistChronology;
516 ThaiBuddhistDate ldate2 = ThaiBuddhistChronology.INSTANCE.date(mdate2); in test_periodUntilDiffChrono()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronoLocalDate.java67 import java.time.chrono.ThaiBuddhistChronology;
134 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
144 ThaiBuddhistChronology chrono = ThaiBuddhistChronology.INSTANCE;
155 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
168 return (D) ThaiBuddhistChronology.INSTANCE.dateNow();
187 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
194 Chronology chrono = ThaiBuddhistChronology.INSTANCE;
DTestThaiBuddhistChronoImpl.java62 import java.time.chrono.ThaiBuddhistChronology;
100 ThaiBuddhistDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(isoStartDate); in test_ThaiBuddhistChrono_vsCalendar()
DTestUmmAlQuraChronology.java57 import java.time.chrono.ThaiBuddhistChronology;
768 assertEquals(ThaiBuddhistChronology.INSTANCE.date(hijrah), thai); in test_hijrahToThai()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/
DTCKChronologySerialization.java67 import java.time.chrono.ThaiBuddhistChronology;
89 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
124 {ThaiBuddhistChronology.class}, in invalid_serial_classes()
DTCKChronoLocalDateTimeSerialization.java70 import java.time.chrono.ThaiBuddhistChronology;
90 {ThaiBuddhistChronology.INSTANCE}}; in data_of_calendars()
DTCKChronoZonedDateTimeSerialization.java68 import java.time.chrono.ThaiBuddhistChronology;
89 {ThaiBuddhistChronology.INSTANCE}, in data_of_calendars()
/libcore/luni/src/test/java/libcore/java/time/chrono/
DThaiBuddhistDateTest.java30 import java.time.chrono.ThaiBuddhistChronology;
40 ChronoPeriod period = ThaiBuddhistChronology.INSTANCE.period(1, 1, 1); in minus_thaiBuddhistChronologyPeriod()
49 ChronoPeriod period = ThaiBuddhistChronology.INSTANCE.period(1, -1, -1); in minus_thaiBuddhistChronologyPeriod_withNegative()
DThaiBuddhistChronologyTest.java21 import java.time.chrono.ThaiBuddhistChronology;
68 ThaiBuddhistChronology.INSTANCE.range(field)); in test_range()
74 assertSame(ThaiBuddhistChronology.INSTANCE, ThaiBuddhistDate.now().getChronology()); in test_ThaiBuddhistDate_getChronology()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatter.java91 import java.time.chrono.ThaiBuddhistChronology;
285 …ChronoZonedDateTime<ThaiBuddhistDate> thaiZdt = ThaiBuddhistChronology.INSTANCE.zonedDateTime(zdt); in data_format_withZone_withChronology()
328 … {ThaiBuddhistChronology.INSTANCE, null, DayOfWeek.MONDAY, null}, // not a complete date in data_format_withZone_withChronology()
329 {ThaiBuddhistChronology.INSTANCE, null, ym, null}, // not a complete date in data_format_withZone_withChronology()
330 {ThaiBuddhistChronology.INSTANCE, null, ld, "2551::::ThaiBuddhist"}, in data_format_withZone_withChronology()
331 {ThaiBuddhistChronology.INSTANCE, null, lt, ":11:::ThaiBuddhist"}, in data_format_withZone_withChronology()
332 {ThaiBuddhistChronology.INSTANCE, null, ldt, "2551:11:::ThaiBuddhist"}, in data_format_withZone_withChronology()
333 {ThaiBuddhistChronology.INSTANCE, null, ot, ":11:+01:00::ThaiBuddhist"}, in data_format_withZone_withChronology()
334 {ThaiBuddhistChronology.INSTANCE, null, odt, "2551:11:+01:00::ThaiBuddhist"}, in data_format_withZone_withChronology()
335 … {ThaiBuddhistChronology.INSTANCE, null, zdt, "2551:11:+02:00:Europe/Paris:ThaiBuddhist"}, in data_format_withZone_withChronology()
[all …]
DTCKChronoPrinterParser.java68 import java.time.chrono.ThaiBuddhistChronology;
111 {"ThaiBuddhist", ThaiBuddhistChronology.INSTANCE}, in data_parseValid()
115 {"ThaiBuddhistXXX", ThaiBuddhistChronology.INSTANCE}, in data_parseValid()
DTCKDateTimeParseResolver.java111 import java.time.chrono.ThaiBuddhistChronology;
922 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); in test_withChronology_parsedChronology_noOverride()
932 assertEquals(accessor.query(TemporalQueries.chronology()), ThaiBuddhistChronology.INSTANCE); in test_withChronology_parsedChronology_override()
1009 ChronoLocalDate cld = ThaiBuddhistChronology.INSTANCE.dateNow(); in test_fieldResolvesToChronoLocalDate_noOverrideChrono_wrongChrono()
1016 ChronoLocalDate cld = ThaiBuddhistChronology.INSTANCE.dateNow(); in test_fieldResolvesToChronoLocalDate_overrideChrono_wrongChrono()
1046 … ChronoLocalDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON); in test_fieldResolvesToChronoLocalDateTime_noOverrideChrono_wrongChrono()
1053 … ChronoLocalDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON); in test_fieldResolvesToChronoLocalDateTime_overrideChrono_wrongChrono()
1086 …ChronoZonedDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZ… in test_fieldResolvesToChronoZonedDateTime_noOverrideChrono_wrongChrono()
1093 …ChronoZonedDateTime<?> cldt = ThaiBuddhistChronology.INSTANCE.dateNow().atTime(LocalTime.NOON).atZ… in test_fieldResolvesToChronoZonedDateTime_overrideChrono_wrongChrono()
/libcore/ojluni/src/main/java/java/time/chrono/
DThaiBuddhistChronology.java109 public final class ThaiBuddhistChronology extends AbstractChronology implements Serializable { class
114 public static final ThaiBuddhistChronology INSTANCE = new ThaiBuddhistChronology();
163 private ThaiBuddhistChronology() { in ThaiBuddhistChronology() method in ThaiBuddhistChronology
DThaiBuddhistDate.java59 import static java.time.chrono.ThaiBuddhistChronology.YEARS_DIFFERENCE;
197 return ThaiBuddhistChronology.INSTANCE.date(temporal); in from()
221 public ThaiBuddhistChronology getChronology() { in getChronology()
222 return ThaiBuddhistChronology.INSTANCE; in getChronology()
510 return ThaiBuddhistChronology.INSTANCE.date(year, month, dayOfMonth); in readExternal()
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestDateTimeFormatter.java82 import java.time.chrono.ThaiBuddhistChronology;
125 assertGoodErrorDate(ThaiBuddhistChronology.INSTANCE::date, ""); in test_parse_errorMessage()
141 assertGoodErrorTime(ThaiBuddhistChronology.INSTANCE::date, ""); in test_parse_errorMessage()
DTestNonIsoFormatter.java41 import java.time.chrono.ThaiBuddhistChronology;
69 private static final Chronology BUDDHIST = ThaiBuddhistChronology.INSTANCE;
DTestReducedParser.java80 import java.time.chrono.ThaiBuddhistChronology;
405 {ThaiBuddhistChronology.INSTANCE.date(baseYear)}, in provider_reducedWithChrono()
406 {ThaiBuddhistChronology.INSTANCE.date(baseYear).plus(1, YEARS)}, in provider_reducedWithChrono()
407 {ThaiBuddhistChronology.INSTANCE.date(baseYear).plus(99, YEARS)}, in provider_reducedWithChrono()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKPeriod.java71 import java.time.chrono.ThaiBuddhistChronology;
249 Period.from(ThaiBuddhistChronology.INSTANCE.period(1, 1, 1)); in factory_from_TemporalAmount_NonISO()
640 pymd(4, 5, 6).plus(ThaiBuddhistChronology.INSTANCE.period(1, 0, 0)); in test_plus_TemporalAmount_nonISO()
785 pymd(4, 5, 6).minus(ThaiBuddhistChronology.INSTANCE.period(1, 0, 0)); in test_minus_TemporalAmount_nonISO()

12