Home
last modified time | relevance | path

Searched refs:minusNanos (Results 1 – 25 of 26) sorted by relevance

12

/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKClock_Fixed.java132 Clock d = Clock.fixed(INSTANT.minusNanos(1), ZoneOffset.UTC); in test_equals()
149 Clock d = Clock.fixed(INSTANT.minusNanos(1), ZoneOffset.UTC); in test_hashCode()
DTCKClock_Offset.java141 Clock d = Clock.offset(Clock.system(PARIS), OFFSET.minusNanos(1)); in test_equals()
158 Clock d = Clock.offset(Clock.system(PARIS), OFFSET.minusNanos(1)); in test_hashCode()
DTCKLocalTime.java2152 t = t.minusNanos(500000000);
2231 LocalTime t = base.minusNanos(nanoseconds);
2241 LocalTime t = TEST_12_30_40_987654321.minusNanos(0);
2247 LocalTime t = TEST_12_30_40_987654321.minusNanos(24 * 60 * 60 * 1000000000L);
2253 LocalTime t = LocalTime.of(0, 0, 0, 1).minusNanos(1);
2259 LocalTime t = LocalTime.of(12, 0, 0, 1).minusNanos(1);
2425 t = t.minusNanos(1);
2439 t = t.minusNanos(1);
DTCKInstant.java1697 i = i.minusNanos(amount);
1705 i.minusNanos(-1);
1711 i.minusNanos(1);
DTCKDuration.java2123 t = t.minusNanos(amount); in minusNanos_long()
2131 t.minusNanos(-1); in minusNanos_long_overflowTooBig()
2137 t.minusNanos(1); in minusNanos_long_overflowTooSmall()
DTCKOffsetTime.java1062 OffsetTime test = base.minusNanos(1);
1069 OffsetTime test = base.minusNanos(0);
DTCKZonedDateTime.java1987 assertEquals(base.minusNanos(-amount * 3600_000_000_000L), expected);
1994 ZonedDateTime test = base.minusNanos(1);
1995 assertEquals(test, ZonedDateTime.of(ldt.minusNanos(1), ZONE_0100));
DTCKLocalDateTime.java376 Clock clock = Clock.fixed(MIN_INSTANT.minusNanos(1), ZoneOffset.UTC);
2665 t = t.minusNanos(500000000);
2748 LocalDateTime t = base.minusNanos(nanoseconds);
DTCKOffsetDateTime.java1139 OffsetDateTime test = base.minusNanos(1);
/libcore/ojluni/src/test/java/time/test/java/time/
DTestDuration.java169 assertSame(t.minusNanos(0), t); in minusNanos_zeroReturnsThis()
175 assertSame(t.minusNanos(1002000000), Duration.ZERO); in minusNanos_zeroSingleton()
DTestLocalDateTime.java465 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusNanos(0); in test_minusNanos_noChange()
471 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusNanos(24 * 60 * 60 * 1000000000L); in test_minusNanos_noChange_oneDay()
478 … LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(0, 0, 0, 1)).minusNanos(1); in test_minusNanos_toMidnight()
484 …LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(12, 0, 0, 1)).minusNanos(1); in test_minusNanos_toMidday()
DTestOffsetDateTime.java319 OffsetDateTime test = base.minusNanos(0); in test_minusNanos_zero()
/libcore/luni/src/test/java/libcore/java/time/
DDurationTest.java77 { Instant.EPOCH, Duration.between(Instant.EPOCH, Instant.MIN).minusNanos(1) }, in test_addTo_exceeds()
104 { Instant.EPOCH, Duration.between(Instant.MAX, Instant.EPOCH).minusNanos(1) }, in test_subtractFrom_exceeds()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java402 assertEquals(test.nextTransition(first.getInstant().minusNanos(1)), first); in test_London_nextTransition_historic()
409 assertEquals(test.nextTransition(next.getInstant().minusNanos(1)), next); in test_London_nextTransition_historic()
427 assertEquals(test.nextTransition(b.getInstant().minusNanos(1)), b); in test_London_nextTransition_rulesBased()
430 assertEquals(test.nextTransition(c.getInstant().minusNanos(1)), c); in test_London_nextTransition_rulesBased()
448 assertEquals(test.previousTransition(first.getInstant().minusNanos(1)), null); in test_London_previousTransition_historic()
885 assertEquals(test.nextTransition(first.getInstant().minusNanos(1)), first); in test_Kathmandu_nextTransition_historic()
892 assertEquals(test.nextTransition(next.getInstant().minusNanos(1)), next); in test_Kathmandu_nextTransition_historic()
916 assertEquals(test.nextTransition(first.getInstant().minusNanos(1)), first); in test_Apia_nextTransition_historic()
923 assertEquals(test.nextTransition(next.getInstant().minusNanos(1)), next); in test_Apia_nextTransition_historic()
/libcore/ojluni/src/main/java/java/time/
DOffsetTime.java1047 public OffsetTime minusNanos(long nanos) { in minusNanos() method in OffsetTime
1048 return with(time.minusNanos(nanos), offset); in minusNanos()
DClock.java629 return instant.minusNanos(adjust); in instant()
DInstant.java1021 public Instant minusNanos(long nanosToSubtract) { in minusNanos() method in Instant
DDuration.java936 public Duration minusNanos(long nanosToSubtract) { in minusNanos() method in Duration
DOffsetDateTime.java1513 public OffsetDateTime minusNanos(long nanos) { in minusNanos() method in OffsetDateTime
DLocalTime.java1260 public LocalTime minusNanos(long nanosToSubtract) { in minusNanos() method in LocalTime
DZonedDateTime.java2013 public ZonedDateTime minusNanos(long nanos) { in minusNanos() method in ZonedDateTime
DLocalDateTime.java1528 public LocalDateTime minusNanos(long nanos) { in minusNanos() method in LocalDateTime
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java245 public java.time.Duration minusNanos(long nanosToSubtract) { in minusNanos() method in Duration
DOffsetDateTime.java350 public java.time.OffsetDateTime minusNanos(long nanos) { in minusNanos() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeParseResolver.java640 …assertEquals(accessor.query(TemporalQueries.localTime()), expectedTime.minusNanos(nano), "Resolver… in test_resolveThreeToTime()

12