/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoLocalDate.java | 71 import java.time.chrono.ChronoLocalDate; 116 ChronoLocalDate date = chrono.date(refDate); in test_badWithAdjusterChrono() 119 ChronoLocalDate date2 = chrono2.date(refDate); in test_badWithAdjusterChrono() 130 ChronoLocalDate result = date.with(adjuster); in test_badWithAdjusterChrono() 139 ChronoLocalDate date = chrono.date(refDate); in test_badPlusAdjusterChrono() 142 ChronoLocalDate date2 = chrono2.date(refDate); in test_badPlusAdjusterChrono() 153 ChronoLocalDate result = date.plus(adjuster); in test_badPlusAdjusterChrono() 162 ChronoLocalDate date = chrono.date(refDate); in test_badMinusAdjusterChrono() 165 ChronoLocalDate date2 = chrono2.date(refDate); in test_badMinusAdjusterChrono() 176 ChronoLocalDate result = date.minus(adjuster); in test_badMinusAdjusterChrono() [all …]
|
D | TCKChronology.java | 74 import java.time.chrono.ChronoLocalDate; 172 ChronoLocalDate date1 = chrono.dateNow(); in test_epoch() 174 ChronoLocalDate date2 = date1.with(ChronoField.EPOCH_DAY, epoch1); in test_epoch() 183 ChronoLocalDate date = chrono.dateNow(); in test_dateEpochDay() 185 ChronoLocalDate test = chrono.dateEpochDay(epochDay); in test_dateEpochDay() 270 ChronoLocalDate date1 = chrono.dateYearDay(HijrahEra.AH, 1434, 178); in test_HijrahChronology_dateYearDay() 271 ChronoLocalDate date2 = chrono.date(HijrahEra.AH, 1434, 7, 1); in test_HijrahChronology_dateYearDay() 279 ChronoLocalDate date1 = chrono.dateYearDay(MinguoEra.ROC, 5, 60); in test_MinguoChronology_dateYearDay() 280 ChronoLocalDate date2 = chrono.date(MinguoEra.ROC, 5, 2, 29); in test_MinguoChronology_dateYearDay() 288 ChronoLocalDate date1 = chrono.dateYearDay(IsoEra.CE, 5, 60); in test_IsoChronology_dateYearDay() [all …]
|
D | TCKTestServiceLoader.java | 64 import java.time.chrono.ChronoLocalDate; 79 ChronoLocalDate copticDate = chrono.date(1729, 4, 27); in test_TestServiceLoader()
|
D | TCKChronoPeriod.java | 72 import java.time.chrono.ChronoLocalDate; 203 ChronoLocalDate date = chrono.dateNow(); in test_addTo() 211 ChronoLocalDate isoDate = LocalDate.of(2000, 1, 1); in test_addTo_wrongChrono() 212 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_addTo_wrongChrono() 221 ChronoLocalDate date = chrono.dateNow(); in test_subtractFrom() 229 ChronoLocalDate isoDate = LocalDate.of(2000, 1, 1); in test_subtractFrom_wrongChrono() 230 ChronoLocalDate thaiDate = ThaiBuddhistChronology.INSTANCE.date(2000, 1, 1); in test_subtractFrom_wrongChrono()
|
D | CopticDate.java | 72 import java.time.chrono.ChronoLocalDate; 90 implements ChronoLocalDate, Serializable { 309 public Period until(ChronoLocalDate endDate) { in until()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | ChronoLocalDate.java | 240 public interface ChronoLocalDate interface 241 extends Temporal, TemporalAdjuster, Comparable<ChronoLocalDate> { 258 static Comparator<ChronoLocalDate> timeLineOrder() { in timeLineOrder() 284 static ChronoLocalDate from(TemporalAccessor temporal) { in from() 285 if (temporal instanceof ChronoLocalDate) { in from() 286 return (ChronoLocalDate) temporal; in from() 424 default ChronoLocalDate with(TemporalAdjuster adjuster) { in with() 435 default ChronoLocalDate with(TemporalField field, long newValue) { in with() 448 default ChronoLocalDate plus(TemporalAmount amount) { in plus() 458 default ChronoLocalDate plus(long amountToAdd, TemporalUnit unit) { in plus() [all …]
|
D | Chronology.java | 311 default ChronoLocalDate date(Era era, int yearOfEra, int month, int dayOfMonth) { in date() 325 ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth); in date() 342 default ChronoLocalDate dateYearDay(Era era, int yearOfEra, int dayOfYear) { in dateYearDay() 355 ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear); in dateYearDay() 367 ChronoLocalDate dateEpochDay(long epochDay); in dateEpochDay() 385 default ChronoLocalDate dateNow() { in dateNow() 405 default ChronoLocalDate dateNow(ZoneId zone) { in dateNow() 423 default ChronoLocalDate dateNow(Clock clock) { in dateNow() 447 ChronoLocalDate date(TemporalAccessor temporal); in date() 470 … default ChronoLocalDateTime<? extends ChronoLocalDate> localDateTime(TemporalAccessor temporal) { in localDateTime() [all …]
|
D | ChronoLocalDateImpl.java | 143 abstract class ChronoLocalDateImpl<D extends ChronoLocalDate> 144 implements ChronoLocalDate, Temporal, TemporalAdjuster, Serializable { 160 static <D extends ChronoLocalDate> D ensureValid(Chronology chrono, Temporal temporal) { in ensureValid() 179 return (D) ChronoLocalDate.super.with(adjuster); in with() 185 return (D) ChronoLocalDate.super.with(field, value); in with() 192 return (D) ChronoLocalDate.super.plus(amount); in plus() 213 return (D) ChronoLocalDate.super.plus(amountToAdd, unit); in plus() 219 return (D) ChronoLocalDate.super.minus(amount); in minus() 225 return (D) ChronoLocalDate.super.minus(amountToSubtract, unit); in minus() 378 ChronoLocalDate end = getChronology().date(endExclusive); in until() [all …]
|
D | AbstractChronology.java | 132 static final Comparator<ChronoLocalDate> DATE_ORDER = 133 (Comparator<ChronoLocalDate> & Serializable) (date1, date2) -> { 139 static final Comparator<ChronoLocalDateTime<? extends ChronoLocalDate>> DATE_TIME_ORDER = 140 …(Comparator<ChronoLocalDateTime<? extends ChronoLocalDate>> & Serializable) (dateTime1, dateTime2)… 453 …public ChronoLocalDate resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverSty… in resolveDate() 463 ChronoLocalDate resolved = resolveYearOfEra(fieldValues, resolverStyle); in resolveDate() 506 ChronoLocalDate chronoDate = dateNow() in resolveProlepticMonth() 513 …ChronoLocalDate resolveYearOfEra(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle… in resolveYearOfEra() 529 ChronoLocalDate chronoDate = dateYearDay(year, 1); in resolveYearOfEra() 551 ChronoLocalDate resolveYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) { in resolveYMD() [all …]
|
D | ChronoLocalDateTimeImpl.java | 100 final class ChronoLocalDateTimeImpl<D extends ChronoLocalDate> 173 static <R extends ChronoLocalDate> ChronoLocalDateTimeImpl<R> of(R date, LocalTime time) { in of() 186 …static <R extends ChronoLocalDate> ChronoLocalDateTimeImpl<R> ensureValid(Chronology chrono, Tempo… in ensureValid() 278 if (adjuster instanceof ChronoLocalDate) { in with() 280 return with((ChronoLocalDate) adjuster, time); in with() 389 ChronoLocalDate endDate = end.toLocalDate(); in until() 432 ChronoLocalDate date = (ChronoLocalDate) in.readObject(); in readExternal()
|
D | ChronoPeriod.java | 116 …public static ChronoPeriod between(ChronoLocalDate startDateInclusive, ChronoLocalDate endDateExcl… in between()
|
D | ChronoZonedDateTimeImpl.java | 104 final class ChronoZonedDateTimeImpl<D extends ChronoLocalDate> 134 static <R extends ChronoLocalDate> ChronoZonedDateTime<R> ofBest( in ofBest() 200 …static <R extends ChronoLocalDate> ChronoZonedDateTimeImpl<R> ensureValid(Chronology chrono, Tempo… in ensureValid()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestChronoLocalDate.java | 64 import java.time.chrono.ChronoLocalDate; 85 List<ChronoLocalDate> dates = new ArrayList<>(); in test_date_comparator_checkGenerics_ISO() 86 ChronoLocalDate date = LocalDate.of(2013, 1, 1); in test_date_comparator_checkGenerics_ISO() 101 List<ChronoLocalDate> copy = new ArrayList<>(dates); in test_date_comparator_checkGenerics_ISO() 103 Collections.sort(copy, ChronoLocalDate.timeLineOrder()); in test_date_comparator_checkGenerics_ISO() 105 assertTrue(ChronoLocalDate.timeLineOrder().compare(copy.get(0), copy.get(1)) < 0); in test_date_comparator_checkGenerics_ISO() 127 Collections.sort(copy, ChronoLocalDate.timeLineOrder()); 129 assertTrue(ChronoLocalDate.timeLineOrder().compare(copy.get(0), copy.get(1)) < 0); 135 ChronoLocalDate date = chrono.dateNow(); 154 public <D extends ChronoLocalDate> void test_date_checkGenerics_genericsMethod_withType() { [all …]
|
D | TestExampleCode.java | 65 import java.time.chrono.ChronoLocalDate; 89 ChronoLocalDate now1 = Chronology.of("ThaiBuddhist").dateNow(); in test_chronoPackageExample() 100 ChronoLocalDate date = chrono.dateNow(); in test_chronoPackageExample() 105 ChronoLocalDate first = now1 in test_chronoPackageExample() 108 ChronoLocalDate last = first in test_chronoPackageExample() 144 ChronoLocalDate date = chrono.dateNow(); in test_calendarPackageExample() 181 ChronoLocalDate date = LocalDate.now(); in test_unknownChronologyWithDateTime() 183 ChronoLocalDate ld = cldt.toLocalDate(); in test_unknownChronologyWithDateTime() 203 private <D extends ChronoLocalDate> D next(D date) { in next() 215 private <D extends ChronoLocalDate> ChronoLocalDateTime<D> tomorrowNoon(D date) { in tomorrowNoon()
|
D | TestUmmAlQuraChronology.java | 46 import java.time.chrono.ChronoLocalDate; 242 public void test_DateYearDay(ChronoLocalDate date1, ChronoLocalDate date2) { in test_DateYearDay() 325 …public void test_diffBetweenDates(ChronoLocalDate from, ChronoLocalDate to, long days, long months… in test_diffBetweenDates() 384 public void test_toString(ChronoLocalDate hijrahDate, String expected) { in test_toString() 404 ChronoLocalDate date = HijrahChronology.INSTANCE.date(year, month, 1); in test_valueRange_monthDays() 568 public void test_toLocalDate(ChronoLocalDate hijrahDate, LocalDate iso) { in test_toLocalDate() 574 public void test_adjust_toLocalDate(ChronoLocalDate hijrahDate, LocalDate iso) { in test_adjust_toLocalDate() 580 public void test_fromCalendrical(ChronoLocalDate hijrahDate, LocalDate iso) { in test_fromCalendrical() 586 public void test_dayOfWeekEqualIsoDayOfWeek(ChronoLocalDate hijrahDate, LocalDate iso) { in test_dayOfWeekEqualIsoDayOfWeek() 592 public void test_LocalDate_adjustToHijrahDate(ChronoLocalDate hijrahDate, LocalDate localDate) { in test_LocalDate_adjustToHijrahDate() [all …]
|
/libcore/luni/src/test/java/libcore/java/time/chrono/ |
D | ChronologyTest.java | 20 import java.time.chrono.ChronoLocalDate; 95 public ChronoLocalDate date(int prolepticYear, int month, int dayOfMonth) { in date() 100 public ChronoLocalDate dateYearDay(int prolepticYear, int dayOfYear) { in dateYearDay() 105 public ChronoLocalDate dateEpochDay(long epochDay) { in dateEpochDay() 110 public ChronoLocalDate date(TemporalAccessor temporal) { in date()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/serial/ |
D | TCKCopticSerialization.java | 63 import java.time.chrono.ChronoLocalDate; 78 ChronoLocalDate copticDate = chrono.date(1729, 4, 27); in test_eraSerialization()
|
D | TCKChronoLocalDateSerialization.java | 66 import java.time.chrono.ChronoLocalDate; 110 public void test_ChronoSerialization(ChronoLocalDate date, int dateType) throws Exception { in test_ChronoSerialization() 118 private void test_serialization_format(ChronoLocalDate date, int dateType) throws Exception { in test_serialization_format()
|
/libcore/ojluni/src/main/java/java/time/ |
D | LocalDate.java | 83 import java.time.chrono.ChronoLocalDate; 132 implements Temporal, TemporalAdjuster, ChronoLocalDate, Serializable { 506 return ChronoLocalDate.super.isSupported(field); in isSupported() 540 return ChronoLocalDate.super.isSupported(unit); in isSupported() 618 return ChronoLocalDate.super.get(field); in get() 717 return ChronoLocalDate.super.getEra(); in getEra() 1515 return ChronoLocalDate.super.query(query); in query() 1544 return ChronoLocalDate.super.adjustInto(temporal); in adjustInto() 1656 public Period until(ChronoLocalDate endDateExclusive) { in until() 1859 public int compareTo(ChronoLocalDate other) { in compareTo() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | WeekFields.java | 85 import java.time.chrono.ChronoLocalDate; 724 private ChronoLocalDate ofWeekBasedYear(Chronology chrono, in ofWeekBasedYear() 726 ChronoLocalDate date = chrono.date(yowby, 1, 1); in ofWeekBasedYear() 845 ChronoLocalDate date = Chronology.from(temporal).date(temporal); in localizedWeekOfWeekBasedYear() 915 public ChronoLocalDate resolve( in resolve() 957 private ChronoLocalDate resolveWoM( in resolveWoM() 959 ChronoLocalDate date; in resolveWoM() 983 private ChronoLocalDate resolveWoY( in resolveWoY() 985 ChronoLocalDate date = chrono.date(year, 1, 1); in resolveWoY() 1005 private ChronoLocalDate resolveWBY( in resolveWBY() [all …]
|
D | TemporalUnit.java | 68 import java.time.chrono.ChronoLocalDate; 172 if (temporal instanceof ChronoLocalDate) { in isSupportedBy()
|
D | JulianFields.java | 69 import java.time.chrono.ChronoLocalDate; 291 public ChronoLocalDate resolve( in resolve()
|
/libcore/ojluni/src/test/java/time/test/java/time/format/ |
D | TestNonIsoFormatter.java | 35 import java.time.chrono.ChronoLocalDate; 159 ChronoLocalDate date, String expected) { in test_formatLocalizedDate() 169 ChronoLocalDate expected, String text) { in test_parseLocalizedText() 174 ChronoLocalDate date = chrono.date(temporal); in test_parseLocalizedText()
|
/libcore/ojluni/src/main/java/java/time/format/ |
D | DateTimePrintContext.java | 72 import java.time.chrono.ChronoLocalDate; 161 final ChronoLocalDate effectiveDate; in adjust()
|
D | Parsed.java | 89 import java.time.chrono.ChronoLocalDate; 149 private ChronoLocalDate date; 286 if (resolvedObject instanceof ChronoLocalDate) { in resolveFields() 287 updateCheckConflict((ChronoLocalDate) resolvedObject); in resolveFields() 354 private void updateCheckConflict(ChronoLocalDate cld) { in updateCheckConflict()
|