Home
last modified time | relevance | path

Searched refs:plusWeeks (Results 1 – 21 of 21) 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.java617 JapaneseDate plusWeeks(long weeksToAdd) { in plusWeeks() method in JapaneseDate
618 return with(isoDate.plusWeeks(weeksToAdd)); in plusWeeks()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java213 LocalDate t = reference.plusWeeks(weeks).plusWeeks(-weeks); in test_plusWeeks_symmetry()
216 t = reference.plusWeeks(-weeks).plusWeeks(weeks); in test_plusWeeks_symmetry()
223 LocalDate t = TEST_2007_07_15.plusWeeks(0); in test_plusWeeks_noChange_same()
DTestOffsetDateTime.java227 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.java1053 … case ALIGNED_WEEK_OF_MONTH: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_MONTH)); in with()
1054 … case ALIGNED_WEEK_OF_YEAR: return plusWeeks(newValue - getLong(ALIGNED_WEEK_OF_YEAR)); in with()
1259 case WEEKS: return plusWeeks(amountToAdd); in plus()
1347 public LocalDate plusWeeks(long weeksToAdd) { in plusWeeks() method in LocalDate
1510 …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.java1665 public ZonedDateTime plusWeeks(long weeks) { in plusWeeks() method in ZonedDateTime
1666 return resolveLocal(dateTime.plusWeeks(weeks)); in plusWeeks()
1911 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
DLocalDateTime.java1253 public LocalDateTime plusWeeks(long weeks) { in plusWeeks() method in LocalDateTime
1254 LocalDate newDate = date.plusWeeks(weeks); in plusWeeks()
1450 … return (weeks == Long.MIN_VALUE ? plusWeeks(Long.MAX_VALUE).plusWeeks(1) : plusWeeks(-weeks)); in minusWeeks()
/libcore/ojluni/src/main/java/java/time/temporal/
DIsoFields.java503 date = date.plusWeeks((dow - 1) / 7); in resolve()
506 date = date.plusWeeks(Math.subtractExact(dow, 7) / 7); in resolve()
509 date = date.plusWeeks(Math.subtractExact(wowby, 1)).with(DAY_OF_WEEK, dow); in resolve()
519 date = date.plusWeeks(wowby - 1).with(DAY_OF_WEEK, dow); in resolve()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKWeekFields.java418 assertEquals(parsed, date.plusWeeks(j - wom), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWom_lenient()
487 assertEquals(parsed, date.plusWeeks(j - wom), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWomDow_lenient()
531 assertEquals(parsed, date.plusWeeks(j - woy), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoy_lenient()
597 assertEquals(parsed, date.plusWeeks(j - woy), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoyDow_lenient()
644 assertEquals(parsed, date.plusWeeks(j - wowby), " ::" + str + ": :" + i + "::" + j); in test_parse_resolve_localizedWoWBY_lenient()
712 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/src/test/java/time/tck/java/time/
DTCKLocalDate.java1221 LocalDate t = TEST_2007_07_15.plusWeeks(1);
1227 LocalDate t = TEST_2007_07_15.plusWeeks(9);
1233 LocalDate t = LocalDate.of(2006, 7, 16).plusWeeks(52);
1239 LocalDate t = TEST_2007_07_15.plusYears(-1).plusWeeks(104);
1245 LocalDate t = TEST_2007_07_15.plusWeeks(-1);
1251 LocalDate t = TEST_2007_07_15.plusWeeks(-28);
1257 LocalDate t = TEST_2007_07_15.plusWeeks(-104);
1263 LocalDate t = LocalDate.of(Year.MAX_VALUE, 12, 24).plusWeeks(1);
1270 LocalDate t = LocalDate.of(Year.MIN_VALUE, 1, 8).plusWeeks(-1);
1277 LocalDate.of(Year.MAX_VALUE, 12, 25).plusWeeks(1);
[all …]
DTCKLocalDateTime.java1558 LocalDateTime t = reference.plusWeeks(weeks).plusWeeks(-weeks);
1561 t = reference.plusWeeks(-weeks).plusWeeks(weeks);
1568 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(1);
1574 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(9);
1580 LocalDateTime t = LocalDateTime.of(2006, 7, 16, 12, 30, 40, 987654321).plusWeeks(52);
1586 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusYears(-1).plusWeeks(104);
1592 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-1);
1598 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-28);
1604 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.plusWeeks(-104);
1610 LocalDateTime t = createDateMidnight(Year.MAX_VALUE, 12, 24).plusWeeks(1);
[all …]
DTCKZonedDateTime.java1745 ZonedDateTime test = base.plusWeeks(1);
1746 assertEquals(test, ZonedDateTime.of(ldt.plusWeeks(1), ZONE_0100));
1753 ZonedDateTime test = base.plusWeeks(0);
DTCKOffsetDateTime.java963 OffsetDateTime test = base.plusWeeks(1);
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java289 public java.time.OffsetDateTime plusWeeks(long weeks) { in plusWeeks() method in OffsetDateTime
/libcore/api/
Dcurrent.txt11583 method public java.time.LocalDate plusWeeks(long);
11661 method public java.time.LocalDateTime plusWeeks(long);
11853 method public java.time.OffsetDateTime plusWeeks(long);
12151 method public java.time.ZonedDateTime plusWeeks(long);