Searched refs:TemporalAdjusters (Results 1 – 12 of 12) sorted by relevance
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/ |
D | TCKTemporalAdjusters.java | 76 import java.time.temporal.TemporalAdjusters; 92 TemporalAdjuster test = TemporalAdjusters.ofDateAdjuster(date -> date.plusDays(2)); in factory_ofDateAdjuster() 98 TemporalAdjusters.ofDateAdjuster(null); in factory_ofDateAdjuster_null() 107 assertNotNull(TemporalAdjusters.firstDayOfMonth()); in factory_firstDayOfMonth() 115 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_nonLeap() 128 LocalDate test = (LocalDate) TemporalAdjusters.firstDayOfMonth().adjustInto(date); in test_firstDayOfMonth_leap() 141 assertNotNull(TemporalAdjusters.lastDayOfMonth()); in factory_lastDayOfMonth() 149 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_nonLeap() 162 LocalDate test = (LocalDate) TemporalAdjusters.lastDayOfMonth().adjustInto(date); in test_lastDayOfMonth_leap() 175 assertNotNull(TemporalAdjusters.firstDayOfNextMonth()); in factory_firstDayOfNextMonth() [all …]
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
D | TemporalAdjusters.java | 113 public final class TemporalAdjusters { class 118 private TemporalAdjusters() { in TemporalAdjusters() method in TemporalAdjusters 291 return TemporalAdjusters.dayOfWeekInMonth(1, dayOfWeek); in firstInMonth() 311 return TemporalAdjusters.dayOfWeekInMonth(-1, dayOfWeek); in lastInMonth()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TestIsoChronology.java | 83 import java.time.temporal.TemporalAdjusters; 211 LocalDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust1() 218 LocalDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust2()
|
/libcore/ojluni/src/test/java/time/test/java/time/chrono/ |
D | TestUmmAlQuraChronology.java | 64 import java.time.temporal.TemporalAdjusters; 362 assertEquals(date.with(TemporalAdjusters.firstDayOfMonth()), HijrahDate.of(1554, 7, 1)); in test_temporalDayAdjustments() 363 assertEquals(date.with(TemporalAdjusters.lastDayOfMonth()), HijrahDate.of(1554, 7, 29)); in test_temporalDayAdjustments() 364 assertEquals(date.with(TemporalAdjusters.firstDayOfNextMonth()), HijrahDate.of(1554, 8, 1)); in test_temporalDayAdjustments() 365 assertEquals(date.with(TemporalAdjusters.firstDayOfNextYear()), HijrahDate.of(1555, 1, 1)); in test_temporalDayAdjustments() 366 assertEquals(date.with(TemporalAdjusters.firstDayOfYear()), HijrahDate.of(1554, 1, 1)); in test_temporalDayAdjustments() 367 assertEquals(date.with(TemporalAdjusters.lastDayOfYear()), HijrahDate.of(1554, 12, 30)); in test_temporalDayAdjustments() 417 hDate = hDate.with(TemporalAdjusters.lastDayOfMonth()); in test_lastDayOfMonth()
|
/libcore/ojluni/src/main/java/java/time/zone/ |
D | ZoneOffsetTransitionRule.java | 64 import static java.time.temporal.TemporalAdjusters.nextOrSame; 65 import static java.time.temporal.TemporalAdjusters.previousOrSame;
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | JapaneseChronology.java | 80 import java.time.temporal.TemporalAdjusters; 492 result = date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); in resolveYMD()
|
D | AbstractChronology.java | 80 import static java.time.temporal.TemporalAdjusters.nextOrSame; 93 import java.time.temporal.TemporalAdjusters; 565 return date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); in resolveYMD()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKThaiBuddhistChronology.java | 91 import java.time.temporal.TemporalAdjusters; 369 ThaiBuddhistDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust1() 376 ThaiBuddhistDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust2()
|
D | TCKMinguoChronology.java | 93 import java.time.temporal.TemporalAdjusters; 363 MinguoDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust1() 370 MinguoDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust2()
|
D | TCKJapaneseChronology.java | 95 import java.time.temporal.TemporalAdjusters; 504 JapaneseDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust1() 511 JapaneseDate test = base.with(TemporalAdjusters.lastDayOfMonth()); in test_adjust2()
|
D | TCKIsoChronology.java | 73 import java.time.temporal.TemporalAdjusters;
|
/libcore/ |
D | openjdk_java_files.bp | 816 "ojluni/src/main/java/java/time/temporal/TemporalAdjusters.java",
|