/libcore/ojluni/src/main/java/java/sql/ |
H A D | Time.java | 42 * given values for the hour, minute, and second. 52 * @param second 0 to 59 58 public Time(int hour, int minute, int second) { argument 59 super(70, 0, 1, hour, minute, second); 93 int second; 106 second = Integer.parseInt(s.substring(secondColon+1)); 111 return new Time(hour, minute, second); 122 int second = super.getSeconds(); 137 if (second < 10) { 138 secondString = "0" + second; [all...] |
H A D | Timestamp.java | 81 * @param second 0 to 59 88 int hour, int minute, int second, int nano) { 89 super(year, month, date, hour, minute, second); 180 int second; 245 second = 257 second = Integer.parseInt(time_s.substring(secondColon+1)); 263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos); 281 int second = super.getSeconds(); 321 if (second < 10) { 322 secondString = "0" + second; 87 Timestamp(int year, int month, int date, int hour, int minute, int second, int nano) argument [all...] |
/libcore/ojluni/src/main/java/java/time/ |
H A D | LocalTime.java | 101 * often viewed as hour-minute-second. 187 * Nanos per second. 217 * The second. 219 private final byte second; field in class:LocalTime 282 * The second and nanosecond fields will be set to zero. 299 * Obtains an instance of {@code LocalTime} from an hour, minute and second. 301 * This returns a {@code LocalTime} with the specified hour, minute and second. 306 * @param second the second-of-minute to represent, from 0 to 59 310 public static LocalTime of(int hour, int minute, int second) { argument 332 of(int hour, int minute, int second, int nanoOfSecond) argument 450 create(int hour, int minute, int second, int nanoOfSecond) argument 465 LocalTime(int hour, int minute, int second, int nanoOfSecond) argument 897 withSecond(int second) argument [all...] |
H A D | LocalDateTime.java | 105 * often viewed as year-month-day-hour-minute-second. Other date and time fields, 213 * day, hour and minute, setting the second and nanosecond to zero. 218 * The second and nanosecond fields will be set to zero. 237 * day, hour, minute and second, setting the nanosecond to zero. 240 * day-of-month, hour, minute and second. 249 * @param second the second-of-minute to represent, from 0 to 59 254 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int second) { argument 256 LocalTime time = LocalTime.of(hour, minute, second); 262 * day, hour, minute, second an 279 of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 329 of(int year, int month, int dayOfMonth, int hour, int minute, int second) argument 354 of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 1074 withSecond(int second) argument [all...] |
H A D | OffsetTime.java | 101 * viewed as hour-minute-second-offset. 211 * Obtains an instance of {@code OffsetTime} from an hour, minute, second and nanosecond. 223 * @param second the second-of-minute to represent, from 0 to 59 224 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 229 public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { argument 230 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); 597 * This returns a {@code LocalTime} with the same hour, minute, second and 626 * Gets the second-of-minute field. 628 * @return the second 774 withSecond(int second) argument [all...] |
H A D | OffsetDateTime.java | 275 * hour, minute, second, nanosecond and offset. 290 * @param second the second-of-minute to represent, from 0 to 59 291 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 299 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { 300 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 811 * This returns a {@code LocalTime} with the same hour, minute, second and 839 * Gets the second-of-minute field. 841 * @return the second-of-minute, from 0 to 59 848 * Gets the nano-of-second fiel 297 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) argument 1084 withSecond(int second) argument [all...] |
H A D | LocalDate.java | 1530 * // these two lines are equivalent, but the second approach is recommended 1566 * The second is to use {@link TemporalUnit#between(Temporal, Temporal)}: 1582 * as the second argument. 1644 * The second is to use {@link Period#between(LocalDate, LocalDate)}: 1725 * specified hour, minute and second. 1732 * @param second the second-of-minute to represent, from 0 to 59 1736 public LocalDateTime atTime(int hour, int minute, int second) { argument 1737 return atTime(LocalTime.of(hour, minute, second)); 1744 * specified hour, minute, second an 1755 atTime(int hour, int minute, int second, int nanoOfSecond) argument [all...] |
H A D | ZonedDateTime.java | 292 * hour, minute, second, nanosecond and time-zone. 323 * @param second the second-of-minute to represent, from 0 to 59 324 * @param nanoOfSecond the nano-of-second to represent, from 0 to 999,999,999 332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { 333 LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 441 * @param nanoOfSecond the nanosecond within the second, from 0 to 999,999,999 1124 * This returns a {@code LocalTime} with the same hour, minute, second and 1153 * Gets the second-of-minute field. 1155 * @return the second 330 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) argument 1464 withSecond(int second) argument [all...] |
/libcore/support/src/test/java/tests/util/ |
H A D | Pair.java | 25 * @param <S> type of the second value. 31 private Pair(F first, S second) { argument 33 mSecond = second; 40 * @param second second value or {@code null}. 42 public static <F, S> Pair<F, S> of(F first, S second) { argument 43 return new Pair<F, S>(first, second); 56 * Gets the second value from this pair.
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | XMLGregorianCalendar.java | 105 * For a value of 24, the minute and second field must be zero per 115 * <a name="datetimefield-second"/> 117 * <td>second</td> 124 * <i>(Note: 60 only allowable for leap second.)</i><br/> 201 * int second, 210 * int second, 318 * @param second value constraints are summarized in 319 * <a href="#datetimefield-second">second field of date/time field mapping table</a>. 327 public void setTime(int hour, int minute, int second) { argument 371 setSecond(int second) argument 416 setTime( int hour, int minute, int second, BigDecimal fractional) argument 444 setTime(int hour, int minute, int second, int millisecond) argument [all...] |
H A D | DatatypeFactory.java | 148 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 150 * year, month, day, hour, minute, and second. 177 * Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. 179 * year, month, day, hour, minute, and second. 312 * whose lexical representation contains only day, hour, minute, and second components. 352 * whose lexical representation contains only day, hour, minute, and second components. 374 * <p>Any remaining milliseconds after determining the day, hour, minute and second are discarded.</p> 438 * <code>day</code>, <code>hour</code>, <code>minute</code> and <code>second</code> as defined in 443 * whose lexical representation contains only day, hour, minute, and second components. 458 * @param second Secon 466 newDurationDayTime( final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) argument 508 newDurationDayTime( final boolean isPositive, final int day, final int hour, final int minute, final int second) argument 788 newXMLGregorianCalendar( final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) argument 824 newXMLGregorianCalendar( final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | FileWriterTest.java | 67 String second = "The second String for testing."; 68 fileWriter.write(second); 72 char[] out = new char[first.length() + second.length() + 10]; 75 assertEquals(first + second, new String(out, 0, length)); 83 second = "The second String for testing."; 84 fileWriter.write(second); 88 out = new char[first.length() + second.length() + 10]; 91 assertEquals(second, ne [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | TimSortTest.java | 30 public int compare(Integer first, Integer second) { 31 return first.compareTo(second);
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | ICU.java | 80 final int second = string.indexOf('_', first + 1); 81 final int third = string.indexOf('_', second + 1); 85 } else if (second == -1) { 100 // If we're here, the length of the second half is either 1 or greater 112 final String secondString = string.substring(first + 1, second); 113 final String thirdString = string.substring(second + 1); 116 // The second subtag is a script. 129 // The second string is a region, and the third a variant. 142 final String secondString = string.substring(first + 1, second); 145 outputArray[IDX_REGION] = string.substring(second [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | ObjectIdentifier.java | 150 int first = 0, second; 369 BigInteger second = big.subtract(BigInteger.valueOf(80)); 370 if (second.compareTo(BigInteger.valueOf(Integer.MAX_VALUE)) == 1) { 373 result[which++] = second.intValue(); 594 * 4. if the first is 0 or 1, the second must be <40 636 private static void checkSecondComponent(int first, int second) throws IOException { argument 637 if (second < 0 || first != 2 && second > 39) { 642 private static void checkSecondComponent(int first, BigInteger second) throws IOException { argument 643 if (second [all...] |
H A D | DerInputBuffer.java | 313 int year, month, day, hour, minute, second, millis; 356 second = 10 * Character.digit((char)buf[pos++], 10); 357 second += Character.digit((char)buf[pos++], 10); 392 second = 0; 396 || hour >= 24 || minute >= 60 || second >= 60) 406 date.setTimeOfDay(hour, minute, second, millis);
|
/libcore/luni/src/test/java/libcore/util/ |
H A D | ZoneInfoDBTest.java | 218 ZoneInfo second = data.makeTimeZone(tzId); 219 assertNotSame(first, second); 221 assertTrue(first.hasSameRules(second)); 225 assertFalse(first.getID().equals(second.getID())); 228 assertFalse(first.getRawOffset() == second.getRawOffset());
|
/libcore/luni/src/test/java/libcore/java/security/ |
H A D | ProviderTest.java | 1006 private final B second; field in class:ProviderTest.Pair 1007 Pair(A first, B second) { argument 1009 this.second = second; 1027 provAndParam.operationParameters.second); 1039 provAndParam.operationParameters.second); 1048 provAndParam.operationParameters.second); 1054 provAndParam.operationParameters.second); 1060 provAndParam.operationParameters.second); 1069 provAndParam.operationParameters.second); [all...] |
/libcore/luni/src/test/java/libcore/java/time/ |
H A D | DurationTest.java | 139 Duration second = Duration.ofSeconds(1); 146 second.addTo(temporal); 151 second.subtractFrom(temporal);
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 453 // one second after what we need. 713 private int second; field in class:ZoneInfo.WallTime 874 * second or a year to a valid time to arrive at what they have. 1100 public void setSecond(int second) { argument 1101 this.second = second; 1141 return second; 1166 calendar.set(Calendar.SECOND, second); 1176 second = calendar.get(Calendar.SECOND);
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldAbstractPreferencesTest.java | 675 AbstractPreferences second = (AbstractPreferences) pref.node("Second node"); 679 assertEquals(0, second.childrenNames().length); 681 second.removeNode(); 684 second.childrenNames(); 736 AbstractPreferences second = (AbstractPreferences) pref.node("Second node"); 767 second.removeNode(); 770 second.node(""); 854 AbstractPreferences second = (AbstractPreferences) pref.node("Second node/sub node"); 858 assertTrue(second.name().compareTo("sub node") == 0);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | CollectionAndMapModifyStreamTest.java | 163 Map.Entry<Integer, Integer> second = c.iterator().next(); 164 assertTrue(c.remove(second));
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Calendar.java | 529 * second within the minute. 536 * millisecond within the second. 619 * second month of the year in the Gregorian and Julian calendars. 1233 * {@code hourOfDay}, {@code minute}, and {@code second}. This method is 1236 * setTimeOfDay(hourOfDay, minute, second, 0);</pre> 1241 * @param second the {@link Calendar#SECOND SECOND} value 1244 public Builder setTimeOfDay(int hourOfDay, int minute, int second) { argument 1245 return setTimeOfDay(hourOfDay, minute, second, 0); 1250 * {@code hourOfDay}, {@code minute}, {@code second}, and 1255 * Calendar.SECOND, second, 1265 setTimeOfDay(int hourOfDay, int minute, int second, int millis) argument 1939 set(int year, int month, int date, int hourOfDay, int minute, int second) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Long.java | 79 * radix specified by the second argument. 149 * unsigned integer value in the radix specified by the second 490 * radix specified by the second argument. The characters in the 637 * radix specified by the second argument. An unsigned integer 699 int second = Character.digit(s.charAt(len - 1), radix); 700 if (second < 0) { 703 long result = first * radix + second; 753 * with the radix given by the second argument. The first 755 * {@code long} in the radix specified by the second 1127 * <p>The second argumen [all...] |
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
H A D | StreamReuseTest.java | 42 Function<S, U> second, 48 U sr = second.apply(stream); 66 U sr = second.apply(stream); 39 assertSecondFails( D data, Function<S, T> first, Function<S, U> second, Class<? extends Throwable> exception, String text) argument
|