Home
last modified time | relevance | path

Searched refs:plusWeeks (Results 1 – 20 of 20) sorted by relevance

/libcore/ojluni/src/main/java/java/time/chrono/
DChronoLocalDateImpl.java276 D plusWeeks(long weeksToAdd) { in plusWeeks() method in ChronoLocalDateImpl
353 …tract == Long.MIN_VALUE ? ((ChronoLocalDateImpl<D>)plusWeeks(Long.MAX_VALUE)).plusWeeks(1) : plusW… in minusWeeks()
DMinguoDate.java376 MinguoDate plusWeeks(long weeksToAdd) { in plusWeeks() method in MinguoDate
377 return super.plusWeeks(weeksToAdd); in plusWeeks()
DThaiBuddhistDate.java376 ThaiBuddhistDate plusWeeks(long weeksToAdd) { in plusWeeks() method in ThaiBuddhistDate
377 return super.plusWeeks(weeksToAdd); in plusWeeks()
DHijrahDate.java541 HijrahDate plusWeeks(long weeksToAdd) { in plusWeeks() method in HijrahDate
542 return super.plusWeeks(weeksToAdd); in plusWeeks()
DJapaneseDate.java621 JapaneseDate plusWeeks(long weeksToAdd) { in plusWeeks() method in JapaneseDate
622 return with(isoDate.plusWeeks(weeksToAdd)); in plusWeeks()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java212 LocalDate t = reference.plusWeeks(weeks).plusWeeks(-weeks); in test_plusWeeks_symmetry()
215 t = reference.plusWeeks(-weeks).plusWeeks(weeks); in test_plusWeeks_symmetry()
222 LocalDate t = TEST_2007_07_15.plusWeeks(0); in test_plusWeeks_noChange_same()
DTestOffsetDateTime.java223 OffsetDateTime test = base.plusWeeks(0); in test_plusWeeks_zero()
DTestLocalDateTime.java254 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(0); in test_plusWeeks_noChange()
/libcore/ojluni/src/main/java/java/time/
DLocalDate.java1025 … case ALIGNED_WEEK_OF_MONTH: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_MONTH)); in with()
1026 … case ALIGNED_WEEK_OF_YEAR: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_YEAR)); in with()
1233 case WEEKS: return plusWeeks(amountToAdd); in plus()
1321 public LocalDate plusWeeks(long weeksToAdd) { in plusWeeks() method in LocalDate
1468 …return (weeksToSubtract == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-we… in minusWeeks()
DOffsetDateTime.java1253 public OffsetDateTime plusWeeks(long weeks) { in plusWeeks() method in OffsetDateTime
1254 return with(dateTime.plusWeeks(weeks), offset); in plusWeeks()
1443 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
DZonedDateTime.java1667 public ZonedDateTime plusWeeks(long weeks) { in plusWeeks() method in ZonedDateTime
1668 return resolveLocal(dateTime.plusWeeks(weeks)); in plusWeeks()
1909 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
DLocalDateTime.java1259 public LocalDateTime plusWeeks(long weeks) { in plusWeeks() method in LocalDateTime
1260 LocalDate newDate = date.plusWeeks(weeks); in plusWeeks()
1457 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java481 date = date.plusWeeks((dow - 1) / 7); in resolve()
484 date = date.plusWeeks(Math.subtractExact(dow, 7) / 7); in resolve()
487 date = date.plusWeeks(Math.subtractExact(wowby, 1)).with(DAY_OF_WEEK, dow); in resolve()
497 date = date.plusWeeks(wowby - 1).with(DAY_OF_WEEK, dow); in resolve()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDate.java1176 LocalDate t = TEST_2007_07_15.plusWeeks(1);
1182 LocalDate t = TEST_2007_07_15.plusWeeks(9);
1188 LocalDate t = LocalDate.of(2006, 7, 16).plusWeeks(52);
1194 LocalDate t = TEST_2007_07_15.plusYears(-1).plusWeeks(104);
1200 LocalDate t = TEST_2007_07_15.plusWeeks(-1);
1206 LocalDate t = TEST_2007_07_15.plusWeeks(-28);
1212 LocalDate t = TEST_2007_07_15.plusWeeks(-104);
1218 LocalDate t = LocalDate.of(Year.MAX_VALUE, 12, 24).plusWeeks(1);
1225 LocalDate t = LocalDate.of(Year.MIN_VALUE, 1, 8).plusWeeks(-1);
1232 LocalDate.of(Year.MAX_VALUE, 12, 25).plusWeeks(1);
[all …]
DTCKLocalDateTime.java1564 LocalDateTime t = reference.plusWeeks(weeks).plusWeeks(-weeks);
1567 t = reference.plusWeeks(-weeks).plusWeeks(weeks);
1574 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(1);
1580 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(9);
1586 LocalDateTime t = LocalDateTime.of(2006, 7, 16, 12, 30, 40, 987654321).plusWeeks(52);
1592 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusYears(-1).plusWeeks(104);
1598 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-1);
1604 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-28);
1610 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-104);
1616 LocalDateTime t = createDateMidnight(Year.MAX_VALUE, 12, 24).plusWeeks(1);
[all …]
DTCKZonedDateTime.java1750 ZonedDateTime test = base.plusWeeks(1);
1751 assertEquals(test, ZonedDateTime.of(ldt.plusWeeks(1), ZONE_0100));
1758 ZonedDateTime test = base.plusWeeks(0);
DTCKOffsetDateTime.java978 OffsetDateTime test = base.plusWeeks(1);
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java416 assertEquals(parsed, date.plusWeeks(j - wom), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWom_lenient()
485 assertEquals(parsed, date.plusWeeks(j - wom), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWomDow_lenient()
529 assertEquals(parsed, date.plusWeeks(j - woy), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoy_lenient()
595 assertEquals(parsed, date.plusWeeks(j - woy), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoyDow_lenient()
641 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBY_lenient()
709 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBYDow_lenient()
DTCKTemporalAdjusters.java343 assertEquals(test, expected.plusWeeks(ordinal - 1)); in test_dayOfWeekInMonth_positive()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java289 public java.time.OffsetDateTime plusWeeks(long weeks) { in plusWeeks() method in OffsetDateTime