Home
last modified time | relevance | path

Searched refs:truncatedTo (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/main/java/java/time/
DOffsetTime.java816 public OffsetTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in OffsetTime
817 return with(time.truncatedTo(unit), offset); in truncatedTo()
DOffsetDateTime.java1126 public OffsetDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in OffsetDateTime
1127 return with(dateTime.truncatedTo(unit), offset); in truncatedTo()
DZonedDateTime.java1520 public ZonedDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in ZonedDateTime
1521 return resolveLocal(dateTime.truncatedTo(unit)); in truncatedTo()
DLocalDateTime.java1114 public LocalDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in LocalDateTime
1115 return with(date, time.truncatedTo(unit)); in truncatedTo()
DInstant.java742 public Instant truncatedTo(TemporalUnit unit) { in truncatedTo() method in Instant
DDuration.java1343 public Duration truncatedTo(TemporalUnit unit) { in truncatedTo() method in Duration
DLocalTime.java966 public LocalTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in LocalTime
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java269 public java.time.OffsetDateTime truncatedTo(java.time.temporal.TemporalUnit unit) { in truncatedTo() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKOffsetTime.java873 assertEquals(TEST_11_30_59_500_PONE.truncatedTo(NANOS), TEST_11_30_59_500_PONE);
874 … assertEquals(TEST_11_30_59_500_PONE.truncatedTo(SECONDS), TEST_11_30_59_500_PONE.withNano(0));
875 …assertEquals(TEST_11_30_59_500_PONE.truncatedTo(DAYS), TEST_11_30_59_500_PONE.with(LocalTime.MIDNI…
880 TEST_11_30_59_500_PONE.truncatedTo(null);
DTCKOffsetDateTime.java911 …assertEquals(TEST_2008_6_30_11_30_59_000000500.truncatedTo(NANOS), TEST_2008_6_30_11_30_59_0000005…
912 …assertEquals(TEST_2008_6_30_11_30_59_000000500.truncatedTo(SECONDS), TEST_2008_6_30_11_30_59_00000…
913 …assertEquals(TEST_2008_6_30_11_30_59_000000500.truncatedTo(DAYS), TEST_2008_6_30_11_30_59_00000050…
918 TEST_2008_6_30_11_30_59_000000500.truncatedTo(null);
DTCKInstant.java646 assertEquals(input.truncatedTo(unit), expected);
661 input.truncatedTo(unit);
666 TEST_12345_123456789.truncatedTo(null);
DTCKDuration.java2374 assertEquals(input.truncatedTo(unit), expected); in test_truncatedTo_valid()
2389 input.truncatedTo(unit); in test_truncatedTo_invalid()
2394 Duration.ofSeconds(1234).truncatedTo(null); in test_truncatedTo_null()
DTCKZonedDateTime.java1567 assertEquals(TEST_DATE_TIME.truncatedTo(NANOS), TEST_DATE_TIME);
1568 assertEquals(TEST_DATE_TIME.truncatedTo(SECONDS), TEST_DATE_TIME.withNano(0));
1569 assertEquals(TEST_DATE_TIME.truncatedTo(DAYS), TEST_DATE_TIME.with(LocalTime.MIDNIGHT));
1574 TEST_DATE_TIME.truncatedTo(null);
DTCKLocalDateTime.java1366 …assertEquals(TEST_2007_07_15_12_30_40_987654321.truncatedTo(NANOS), TEST_2007_07_15_12_30_40_98765…
1367 …assertEquals(TEST_2007_07_15_12_30_40_987654321.truncatedTo(SECONDS), TEST_2007_07_15_12_30_40_987…
1368 …assertEquals(TEST_2007_07_15_12_30_40_987654321.truncatedTo(DAYS), TEST_2007_07_15_12_30_40_987654…
1373 TEST_2007_07_15_12_30_40_987654321.truncatedTo(null);
DTCKLocalTime.java1400 assertEquals(input.truncatedTo(unit), expected); in test_truncatedTo_valid()
1415 input.truncatedTo(unit); in test_truncatedTo_invalid()
1420 TEST_12_30_40_987654321.truncatedTo(null); in test_truncatedTo_null()
/libcore/api/
Dcurrent.txt10667 method public java.time.Duration truncatedTo(java.time.temporal.TemporalUnit);
10703 method public java.time.Instant truncatedTo(java.time.temporal.TemporalUnit);
10815 method public java.time.LocalDateTime truncatedTo(java.time.temporal.TemporalUnit);
10873 method public java.time.LocalTime truncatedTo(java.time.temporal.TemporalUnit);
11003 method public java.time.OffsetDateTime truncatedTo(java.time.temporal.TemporalUnit);
11059 method public java.time.OffsetTime truncatedTo(java.time.temporal.TemporalUnit);
11270 method public java.time.ZonedDateTime truncatedTo(java.time.temporal.TemporalUnit);