/libcore/ojluni/src/main/java/java/time/ |
D | OffsetTime.java | 816 public OffsetTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in OffsetTime 817 return with(time.truncatedTo(unit), offset); in truncatedTo()
|
D | OffsetDateTime.java | 1126 public OffsetDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in OffsetDateTime 1127 return with(dateTime.truncatedTo(unit), offset); in truncatedTo()
|
D | ZonedDateTime.java | 1520 public ZonedDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in ZonedDateTime 1521 return resolveLocal(dateTime.truncatedTo(unit)); in truncatedTo()
|
D | LocalDateTime.java | 1114 public LocalDateTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in LocalDateTime 1115 return with(date, time.truncatedTo(unit)); in truncatedTo()
|
D | Instant.java | 742 public Instant truncatedTo(TemporalUnit unit) { in truncatedTo() method in Instant
|
D | Duration.java | 1343 public Duration truncatedTo(TemporalUnit unit) { in truncatedTo() method in Duration
|
D | LocalTime.java | 966 public LocalTime truncatedTo(TemporalUnit unit) { in truncatedTo() method in LocalTime
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 269 public java.time.OffsetDateTime truncatedTo(java.time.temporal.TemporalUnit unit) { in truncatedTo() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKOffsetTime.java | 873 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);
|
D | TCKOffsetDateTime.java | 911 …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);
|
D | TCKInstant.java | 646 assertEquals(input.truncatedTo(unit), expected); 661 input.truncatedTo(unit); 666 TEST_12345_123456789.truncatedTo(null);
|
D | TCKDuration.java | 2374 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()
|
D | TCKZonedDateTime.java | 1567 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);
|
D | TCKLocalDateTime.java | 1366 …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);
|
D | TCKLocalTime.java | 1400 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/ |
D | current.txt | 10667 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);
|