Home
last modified time | relevance | path

Searched refs:TemporalAdjusters (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKTemporalAdjusters.java76 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/
DTemporalAdjusters.java113 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/
DTestIsoChronology.java83 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/
DTestUmmAlQuraChronology.java64 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/
DZoneOffsetTransitionRule.java64 import static java.time.temporal.TemporalAdjusters.nextOrSame;
65 import static java.time.temporal.TemporalAdjusters.previousOrSame;
/libcore/ojluni/src/main/java/java/time/chrono/
DJapaneseChronology.java80 import java.time.temporal.TemporalAdjusters;
492 result = date(y, moy, 1).with(TemporalAdjusters.lastDayOfMonth()); in resolveYMD()
DAbstractChronology.java80 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/
DTCKThaiBuddhistChronology.java91 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()
DTCKMinguoChronology.java93 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()
DTCKJapaneseChronology.java95 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()
DTCKIsoChronology.java73 import java.time.temporal.TemporalAdjusters;
/libcore/
Dopenjdk_java_files.bp816 "ojluni/src/main/java/java/time/temporal/TemporalAdjusters.java",