Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/time/test/java/time/
DTestDuration.java145 assertSame(t.minusSeconds(0), t); in minusSeconds_zeroReturnsThis()
151 assertSame(t.minusSeconds(1), Duration.ZERO); in minusSeconds_zeroSingleton()
DTestLocalDateTime.java440 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusSeconds(0); in test_minusSeconds_noChange()
446 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.minusSeconds(24 * 60 * 60); in test_minusSeconds_noChange_oneDay()
453 … LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(0, 0, 1)).minusSeconds(1); in test_minusSeconds_toMidnight()
459 … LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(12, 0, 1)).minusSeconds(1); in test_minusSeconds_toMidday()
DTestOffsetDateTime.java312 OffsetDateTime test = base.minusSeconds(0); in test_minusSeconds_zero()
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewCreationTimeTest.java114 Instant minusHour = Instant.now().minusSeconds(60L * 60L); in test()
/libcore/ojluni/src/main/java/java/time/
DOffsetTime.java1032 public OffsetTime minusSeconds(long seconds) { in minusSeconds() method in OffsetTime
1033 return with(time.minusSeconds(seconds), offset); in minusSeconds()
DInstant.java987 public Instant minusSeconds(long secondsToSubtract) { in minusSeconds() method in Instant
DDuration.java912 public Duration minusSeconds(long secondsToSubtract) { in minusSeconds() method in Duration
DOffsetDateTime.java1500 public OffsetDateTime minusSeconds(long seconds) { in minusSeconds() method in OffsetDateTime
DLocalTime.java1268 public LocalTime minusSeconds(long secondsToSubtract) { in minusSeconds() method in LocalTime
DZonedDateTime.java1995 public ZonedDateTime minusSeconds(long seconds) { in minusSeconds() method in ZonedDateTime
DLocalDateTime.java1515 public LocalDateTime minusSeconds(long seconds) { in minusSeconds() method in LocalDateTime
/libcore/ojluni/annotations/hiddenapi/java/time/
DDuration.java237 public java.time.Duration minusSeconds(long secondsToSubtract) { in minusSeconds() method in Duration
DOffsetDateTime.java346 public java.time.OffsetDateTime minusSeconds(long seconds) { in minusSeconds() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java2072 t = t.minusSeconds(1);
2137 LocalTime t = base.minusSeconds(seconds);
2146 LocalTime t = TEST_12_30_40_987654321.minusSeconds(0);
2152 LocalTime t = TEST_12_30_40_987654321.minusSeconds(24 * 60 * 60);
2158 LocalTime t = LocalTime.of(0, 0, 1).minusSeconds(1);
2164 LocalTime t = LocalTime.of(12, 0, 1).minusSeconds(1);
2170 LocalTime t = LocalTime.of(2, 30).minusSeconds(Long.MAX_VALUE);
2172 assertEquals(t, LocalTime.of(2, 30).minusSeconds(secs));
DTCKOffsetDateTime.java278 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
301 expected = expected.minusSeconds(1);
1129 OffsetDateTime test = base.minusSeconds(1);
1295 … OffsetDateTime a = OffsetDateTime.of(1970, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC).minusSeconds(i);
DTCKLocalDateTime.java326 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
348 expected = expected.minusSeconds(1);
816 assertEquals(test, base.minusSeconds(i));
2570 t = t.minusSeconds(1);
2643 LocalDateTime t = base.minusSeconds(seconds);
3022 LocalDateTime a = LocalDateTime.of(1970, 1, 1, 0, 0).minusSeconds(i);
DTCKZonedDateTime.java314 expected = expected.minusSeconds(1);
1971 assertEquals(base.minusSeconds(-amount * 3600), expected);
1978 ZonedDateTime test = base.minusSeconds(1);
1979 assertEquals(test, ZonedDateTime.of(ldt.minusSeconds(1), ZONE_0100));
2164 ldt = ldt.minusSeconds(1);
DTCKInstant.java1487 i = i.minusSeconds(amount);
1495 i.minusSeconds(Long.MIN_VALUE + 1);
1501 i.minusSeconds(Long.MAX_VALUE);
DTCKDuration.java1923 t = t.minusSeconds(amount); in minusSeconds_long()
1931 t.minusSeconds(Long.MIN_VALUE + 1); in minusSeconds_long_overflowTooBig()
1937 t.minusSeconds(Long.MAX_VALUE); in minusSeconds_long_overflowTooSmall()
DTCKOffsetTime.java1045 OffsetTime test = base.minusSeconds(60);
1052 OffsetTime test = base.minusSeconds(0);
DTCKLocalDate.java290 … Clock clock = Clock.fixed(instant.minusSeconds(OFFSET_PONE.getTotalSeconds()), OFFSET_PONE);
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java1032 …stdOffsetTransition1 = OffsetDateTime.of(time_of_stdOffsetTransition1, stdOffset1).minusSeconds(1); in test_of()
1037 …lOffsetTransition1 = OffsetDateTime.of(time_of_wallOffsetTransition1, wallOffset1).minusSeconds(1); in test_of()
1042 …lOffsetTransition2 = OffsetDateTime.of(time_of_wallOffsetTransition2, wallOffset2).minusSeconds(1); in test_of()
1047 …lOffsetTransition3 = OffsetDateTime.of(time_of_wallOffsetTransition3, wallOffset3).minusSeconds(1); in test_of()
/libcore/api/
Dcurrent.txt10634 method public java.time.Duration minusSeconds(long);
10690 method public java.time.Instant minusSeconds(long);
10786 method public java.time.LocalDateTime minusSeconds(long);
10852 method public java.time.LocalTime minusSeconds(long);
10973 method public java.time.OffsetDateTime minusSeconds(long);
11043 method public java.time.OffsetTime minusSeconds(long);
11242 method public java.time.ZonedDateTime minusSeconds(long);