Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/libcore/icu/
DSimpleDateFormatData.java196 private String getTimePattern(boolean is24Hour, boolean withSecond) { in getTimePattern() argument
197 String pattern = ICU.getTimePattern(locale, is24Hour, withSecond); in getTimePattern()
DICU.java353 /* 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/
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.java193 OffsetDateTime test = base.withSecond(59); in test_withSecond_noChange()
/libcore/ojluni/src/main/java/java/time/
DOffsetTime.java775 public OffsetTime withSecond(int second) { in withSecond() method in OffsetTime
776 return with(time.withSecond(second), offset); in withSecond()
DLocalTime.java861 case SECOND_OF_MINUTE: return withSecond((int) newValue); in with()
920 public LocalTime withSecond(int second) { in withSecond() method in LocalTime
DOffsetDateTime.java1084 public OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime
1085 return with(dateTime.withSecond(second), offset); in withSecond()
DZonedDateTime.java1463 public ZonedDateTime withSecond(int second) { in withSecond() method in ZonedDateTime
1464 return resolveLocal(dateTime.withSecond(second)); in withSecond()
DLocalDateTime.java1070 public LocalDateTime withSecond(int second) { in withSecond() method in LocalDateTime
1071 LocalTime newTime = time.withSecond(second); in withSecond()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java261 public java.time.OffsetDateTime withSecond(int second) { in withSecond() method in OffsetDateTime
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1225 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()
DTCKOffsetTime.java832 OffsetTime test = base.withSecond(15);
839 OffsetTime test = base.withSecond(59);
DTCKZonedDateTime.java1529 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);
DTCKLocalDateTime.java1314 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);
DTCKOffsetDateTime.java877 OffsetDateTime test = base.withSecond(15);
/libcore/api/
Dcurrent.txt11678 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);