Home
last modified time | relevance | path

Searched refs:minusDays (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDate.java392 LocalDate t = reference.minusDays(days).minusDays(-days); in test_minusDays_symmetry()
395 t = reference.minusDays(-days).minusDays(days); in test_minusDays_symmetry()
402 LocalDate t = TEST_2007_07_15.minusDays(0); in test_minusDays_noChange_same()
DTestLocalDateTime.java392 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusDays(0); in test_minusDays_noChange()
447 … assertEquals(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1)); in test_minusSeconds_noChange_oneDay()
472 … assertEquals(t.toLocalDate(), TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1)); in test_minusNanos_noChange_oneDay()
DTestOffsetDateTime.java291 OffsetDateTime test = base.minusDays(0); in test_minusDays_zero()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalDateTime.java1779 LocalDate d = base.toLocalDate().minusDays(3);
1798 LocalDate d = base.toLocalDate().minusDays(3);
1843 LocalDate d = base.toLocalDate().minusDays(1);
1902 LocalDate date = TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1);
2003 LocalDate date = TEST_2007_07_15_12_30_40_987654321.toLocalDate().minusDays(1);
2363 LocalDateTime t = reference.minusDays(days).minusDays(-days);
2366 t = reference.minusDays(-days).minusDays(days);
2373 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusDays(1);
2379 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusDays(62);
2385 LocalDateTime t = LocalDateTime.of(2008, 7, 16, 12, 30, 40, 987654321).minusDays(367);
[all …]
DTCKLocalDate.java1607 LocalDate t = TEST_2007_07_15.minusDays(1);
1613 LocalDate t = TEST_2007_07_15.minusDays(62);
1619 LocalDate t = LocalDate.of(2008, 7, 16).minusDays(367);
1625 LocalDate t = TEST_2007_07_15.plusYears(2).minusDays(365 + 366);
1631 LocalDate t = TEST_2007_07_15.minusDays(-1);
1637 LocalDate t = TEST_2007_07_15.minusDays(-169);
1643 LocalDate t = TEST_2007_07_15.minusDays(-731);
1649 LocalDate t = LocalDate.of(Year.MAX_VALUE, 12, 30).minusDays(-1);
1656 LocalDate t = LocalDate.of(Year.MIN_VALUE, 1, 2).minusDays(1);
1663 LocalDate.of(Year.MAX_VALUE, 12, 31).minusDays(-1);
[all …]
DTCKPeriod.java879 assertPeriod(Period.of(1, 2, 3).minusDays(0), 1, 2, 3); in test_minusDays()
880 assertPeriod(Period.of(1, 2, 3).minusDays(10), 1, 2, -7); in test_minusDays()
881 assertPeriod(Period.of(1, 2, 3).minusDays(-10), 1, 2, 13); in test_minusDays()
882 assertPeriod(Period.of(1, 2, 3).minusDays(-3), 1, 2, 6); in test_minusDays()
893 test.minusDays(-1); in test_minusDays_overflowTooBig()
899 test.minusDays(1); in test_minusDays_overflowTooSmall()
DTCKDuration.java1791 t = t.minusDays(amount); in minusDays_long()
1798 t.minusDays(-1); in minusDays_long_overflowTooBig()
1804 t.minusDays(1); in minusDays_long_overflowTooSmall()
DTCKOffsetDateTime.java1099 OffsetDateTime test = base.minusDays(1);
DTCKZonedDateTime.java1939 assertEquals(base.minusDays(-amount), expected);
/libcore/ojluni/src/main/java/java/time/chrono/
DMinguoDate.java411 MinguoDate minusDays(long daysToSubtract) { in minusDays() method in MinguoDate
412 return super.minusDays(daysToSubtract); in minusDays()
DThaiBuddhistDate.java411 ThaiBuddhistDate minusDays(long daysToSubtract) { in minusDays() method in ThaiBuddhistDate
412 return super.minusDays(daysToSubtract); in minusDays()
DHijrahDate.java576 HijrahDate minusDays(long daysToSubtract) { in minusDays() method in HijrahDate
577 return super.minusDays(daysToSubtract); in minusDays()
DJapaneseDate.java656 JapaneseDate minusDays(long daysToSubtract) { in minusDays() method in JapaneseDate
657 return super.minusDays(daysToSubtract); in minusDays()
DChronoLocalDateImpl.java370 D minusDays(long daysToSubtract) { in minusDays() method in ChronoLocalDateImpl
/libcore/luni/src/test/java/libcore/java/time/
DZonedDateTimeTest.java75 checkOfInstant(LDT_P1, OFFSET_P2, ZONE_VIENNA, LDT_P1.minusDays(1).withHour(23), OFFSET_P1); in test_ofInstant()
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java225 public java.time.Duration minusDays(long daysToSubtract) { in minusDays() method in Duration
DOffsetDateTime.java334 public java.time.OffsetDateTime minusDays(long days) { in minusDays() method in OffsetDateTime
/libcore/ojluni/src/main/java/java/time/
DLocalDateTime.java1475 public LocalDateTime minusDays(long days) { in minusDays() method in LocalDateTime
1725 endDate = endDate.minusDays(1); in until()
DLocalDate.java1373 … return minusMonths(periodToSubtract.toTotalMonths()).minusDays(periodToSubtract.getDays()); in minus()
1486 public LocalDate minusDays(long daysToSubtract) { in minusDays() method in LocalDate
DPeriod.java763 public Period minusDays(long daysToSubtract) { in minusDays() method in Period
DDuration.java867 public Duration minusDays(long daysToSubtract) { in minusDays() method in Duration
DOffsetDateTime.java1461 public OffsetDateTime minusDays(long days) { in minusDays() method in OffsetDateTime
DZonedDateTime.java1930 public ZonedDateTime minusDays(long days) { in minusDays() method in ZonedDateTime