/libcore/luni/src/main/java/libcore/icu/ |
D | SimpleDateFormatData.java | 196 private String getTimePattern(boolean is24Hour, boolean withSecond) { in getTimePattern() argument 197 String pattern = ICU.getTimePattern(locale, is24Hour, withSecond); in getTimePattern()
|
D | ICU.java | 353 /* package */ static String getTimePattern(Locale locale, boolean is24Hour, boolean withSecond) { in getTimePattern() argument 355 if (withSecond) { in getTimePattern()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestLocalDateTime.java | 188 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()
|
D | TestOffsetDateTime.java | 193 OffsetDateTime test = base.withSecond(59); in test_withSecond_noChange()
|
/libcore/ojluni/src/main/java/java/time/ |
D | OffsetTime.java | 775 public OffsetTime withSecond(int second) { in withSecond() method in OffsetTime 776 return with(time.withSecond(second), offset); in withSecond()
|
D | LocalTime.java | 861 case SECOND_OF_MINUTE: return withSecond((int) newValue); in with() 920 public LocalTime withSecond(int second) { in withSecond() method in LocalTime
|
D | OffsetDateTime.java | 1084 public OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime 1085 return with(dateTime.withSecond(second), offset); in withSecond()
|
D | ZonedDateTime.java | 1463 public ZonedDateTime withSecond(int second) { in withSecond() method in ZonedDateTime 1464 return resolveLocal(dateTime.withSecond(second)); in withSecond()
|
D | LocalDateTime.java | 1070 public LocalDateTime withSecond(int second) { in withSecond() method in LocalDateTime 1071 LocalTime newTime = time.withSecond(second); in withSecond()
|
/libcore/ojluni/annotations/hiddenapi/java/time/ |
D | OffsetDateTime.java | 261 public java.time.OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1225 t = t.withSecond(i); in test_withSecond_normal() 1232 LocalTime t = TEST_12_30_40_987654321.withSecond(40); in test_withSecond_noChange_equal() 1238 LocalTime t = LocalTime.of(0, 0, 1).withSecond(0); in test_withSecond_toMidnight_equal() 1244 LocalTime t = LocalTime.of(12, 0, 1).withSecond(0); in test_withSecond_toMidday_equal() 1250 TEST_12_30_40_987654321.withSecond(-1); in test_withSecond_secondTooLow() 1255 TEST_12_30_40_987654321.withSecond(60); in test_withSecond_secondTooHigh()
|
D | TCKOffsetTime.java | 832 OffsetTime test = base.withSecond(15); 839 OffsetTime test = base.withSecond(59);
|
D | TCKZonedDateTime.java | 1529 ZonedDateTime test = base.withSecond(12); 1530 …assertEquals(test, ZonedDateTime.of(TEST_LOCAL_2008_06_30_11_30_59_500.withSecond(12), ZONE_0100)); 1536 ZonedDateTime test = base.withSecond(59);
|
D | TCKLocalDateTime.java | 1314 t = t.withSecond(i); 1321 TEST_2007_07_15_12_30_40_987654321.withSecond(-1); 1326 TEST_2007_07_15_12_30_40_987654321.withSecond(60);
|
D | TCKOffsetDateTime.java | 877 OffsetDateTime test = base.withSecond(15);
|
/libcore/api/ |
D | current.txt | 11678 method public java.time.LocalDateTime withSecond(int); 11736 method public java.time.LocalTime withSecond(int); 11877 method public java.time.OffsetDateTime withSecond(int); 11934 method public java.time.OffsetTime withSecond(int); 12173 method public java.time.ZonedDateTime withSecond(int);
|