Home
last modified time | relevance | path

Searched refs:withSecond (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/main/java/libcore/icu/
DICU.java289 /* package */ static String getTimePattern(Locale locale, boolean is24Hour, boolean withSecond) { in getTimePattern() argument
291 if (withSecond) { in getTimePattern()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestLocalDateTime.java188 LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.withSecond(40); in test_withSecond_noChange()
194 … LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(0, 0, 1)).withSecond(0); in test_withSecond_toMidnight()
200 … LocalDateTime t = TEST_2007_07_15_12_30_40_987654321.with(LocalTime.of(12, 0, 1)).withSecond(0); in test_withSecond_toMidday()
DTestOffsetDateTime.java189 OffsetDateTime test = base.withSecond(59); in test_withSecond_noChange()
/libcore/ojluni/src/main/java/java/time/
DOffsetTime.java774 public OffsetTime withSecond(int second) { in withSecond() method in OffsetTime
775 return with(time.withSecond(second), offset); in withSecond()
DOffsetDateTime.java1084 public OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime
1085 return with(dateTime.withSecond(second), offset); in withSecond()
DLocalTime.java838 case SECOND_OF_MINUTE: return withSecond((int) newValue); in with()
897 public LocalTime withSecond(int second) { in withSecond() method in LocalTime
DZonedDateTime.java1464 public ZonedDateTime withSecond(int second) { in withSecond() method in ZonedDateTime
1465 return resolveLocal(dateTime.withSecond(second)); in withSecond()
DLocalDateTime.java1074 public LocalDateTime withSecond(int second) { in withSecond() method in LocalDateTime
1075 LocalTime newTime = time.withSecond(second); in withSecond()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1197 t = t.withSecond(i); in test_withSecond_normal()
1204 LocalTime t = TEST_12_30_40_987654321.withSecond(40); in test_withSecond_noChange_equal()
1210 LocalTime t = LocalTime.of(0, 0, 1).withSecond(0); in test_withSecond_toMidnight_equal()
1216 LocalTime t = LocalTime.of(12, 0, 1).withSecond(0); in test_withSecond_toMidday_equal()
1222 TEST_12_30_40_987654321.withSecond(-1); in test_withSecond_secondTooLow()
1227 TEST_12_30_40_987654321.withSecond(60); in test_withSecond_secondTooHigh()
DTCKOffsetTime.java840 OffsetTime test = base.withSecond(15);
847 OffsetTime test = base.withSecond(59);
DTCKZonedDateTime.java1534 ZonedDateTime test = base.withSecond(12);
1535 …assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withSecond(12), ZONE_0100));
1541 ZonedDateTime test = base.withSecond(59);
DTCKLocalDateTime.java1320 t = t.withSecond(i);
1327 TEST_2007_07_15_12_30_40_987654321.withSecond(-1);
1332 TEST_2007_07_15_12_30_40_987654321.withSecond(60);
DTCKOffsetDateTime.java892 OffsetDateTime test = base.withSecond(15);
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java261 public java.time.OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime