/libcore/ojluni/src/main/java/javax/net/ssl/ |
H A D | SSLSessionContext.java | 82 * If the timeout limit is set to 't' seconds, a session exceeds the 83 * timeout limit 't' seconds after its creation time. 90 * @param seconds the new session timeout limit in seconds; zero means 96 public void setSessionTimeout(int seconds) argument 103 * If the timeout limit is set to 't' seconds, a session exceeds the 104 * timeout limit 't' seconds after its creation time. 112 * @return the session timeout limit in seconds; zero means there is no
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | Duration.java | 98 * A time-based amount of time, such as '34.5 seconds'. 100 * This class models a quantity or amount of time in terms of seconds and nanoseconds. 108 * The duration uses nanosecond resolution with a maximum value of the seconds that can 112 * To achieve this, the class stores a {@code long} representing seconds and an {@code int} 116 * The duration is measured in "seconds", but these are not necessarily identical to 151 * The number of seconds in the duration. 153 private final long seconds; field in class:Duration 156 * number of seconds. This is always positive, and never exceeds 999,999,999. 164 * The seconds are calculated based on the standard definition of a day, 165 * where each day is 86400 seconds whic 215 ofSeconds(long seconds) argument 238 ofSeconds(long seconds, long nanoAdjustment) argument 492 create(long seconds, int nanoAdjustment) argument 505 Duration(long seconds, int nanos) argument 638 withSeconds(long seconds) argument 996 create(BigDecimal seconds) argument [all...] |
H A D | Instant.java | 105 * To achieve this, the class stores a {@code long} representing epoch-seconds and an 107 * The epoch-seconds are measured from the standard Java epoch of {@code 1970-01-01T00:00:00Z} 115 * This has traditionally been subdivided into 24 hours of 60 minutes of 60 seconds, 124 * As a result, the length of a solar day in 2012 is slightly longer than 86400 SI seconds. 131 * of a second from UT1 into whole seconds, known as <i>leap-seconds</i>. 133 * As such, UTC permits a day to have 86399 SI seconds or 86401 SI seconds where 136 * The modern UTC time-scale was introduced in 1972, introducing the concept of whole leap-seconds. 139 * to change the definition of UTC again, with the potential to remove leap seconds o 247 private final long seconds; field in class:Instant 400 create(long seconds, int nanoOfSecond) argument [all...] |
H A D | ZoneOffset.java | 110 * The fields of hours, minutes and seconds make assumptions that are valid for the 128 /** Cache of time-zone offset by offset in seconds. */ 134 * The abs maximum seconds. 156 * The total offset in seconds. 205 final int hours, minutes, seconds; 212 seconds = 0; 217 seconds = 0; 222 seconds = 0; 227 seconds = parseNumber(offsetId, 5, false); 232 seconds 310 ofHoursMinutesSeconds(int hours, int minutes, int seconds) argument 356 validate(int hours, int minutes, int seconds) argument 393 totalSeconds(int hours, int minutes, int seconds) argument [all...] |
H A D | OffsetTime.java | 911 * Returns a copy of this {@code OffsetTime} with the specified number of seconds added. 913 * This adds the specified number of seconds to this time, returning a new time. 918 * @param seconds the seconds to add, may be negative 919 * @return an {@code OffsetTime} based on this time with the seconds added, not null 921 public OffsetTime plusSeconds(long seconds) { argument 922 return with(time.plusSeconds(seconds), offset); 1022 * Returns a copy of this {@code OffsetTime} with the specified number of seconds subtracted. 1024 * This subtracts the specified number of seconds from this time, returning a new time. 1029 * @param seconds th 1032 minusSeconds(long seconds) argument [all...] |
H A D | LocalDateTime.java | 396 * Obtains an instance of {@code LocalDateTime} using seconds from the 403 * @param epochSecond the number of seconds from the epoch of 1970-01-01T00:00:00Z 1312 * Returns a copy of this {@code LocalDateTime} with the specified number of seconds added. 1316 * @param seconds the seconds to add, may be negative 1317 * @return a {@code LocalDateTime} based on this date-time with the seconds added, not null 1320 public LocalDateTime plusSeconds(long seconds) { argument 1321 return plusWithOverflow(date, 0, 0, seconds, 0, 1); 1507 * Returns a copy of this {@code LocalDateTime} with the specified number of seconds subtracted. 1511 * @param seconds th 1515 minusSeconds(long seconds) argument 1546 plusWithOverflow(LocalDate newDate, long hours, long minutes, long seconds, long nanos, int sign) argument [all...] |
H A D | OffsetDateTime.java | 1303 * Returns a copy of this {@code OffsetDateTime} with the specified number of seconds added. 1307 * @param seconds the seconds to add, may be negative 1308 * @return an {@code OffsetDateTime} based on this date-time with the seconds added, not null 1311 public OffsetDateTime plusSeconds(long seconds) { argument 1312 return with(dateTime.plusSeconds(seconds), offset); 1492 * Returns a copy of this {@code OffsetDateTime} with the specified number of seconds subtracted. 1496 * @param seconds the seconds to subtract, may be negative 1497 * @return an {@code OffsetDateTime} based on this date-time with the seconds subtracte 1500 minusSeconds(long seconds) argument [all...] |
H A D | ZonedDateTime.java | 437 * Obtains an instance of {@code ZonedDateTime} using seconds from the 440 * @param epochSecond the number of seconds from the epoch of 1970-01-01T00:00:00Z 1741 * Returns a copy of this {@code ZonedDateTime} with the specified number of seconds added. 1750 * @param seconds the seconds to add, may be negative 1751 * @return a {@code ZonedDateTime} based on this date-time with the seconds added, not null 1754 public ZonedDateTime plusSeconds(long seconds) { argument 1755 return resolveInstant(dateTime.plusSeconds(seconds)); 1982 * Returns a copy of this {@code ZonedDateTime} with the specified number of seconds subtracted. 1991 * @param seconds th 1995 minusSeconds(long seconds) argument [all...] |
H A D | LocalTime.java | 375 int seconds = (int) (nanoOfDay / NANOS_PER_SECOND); 376 nanoOfDay -= seconds * NANOS_PER_SECOND; 377 return create(hours, minutes, seconds, (int) nanoOfDay); 1007 * Returns a {@code LocalTime} with the specified number of seconds added. 1100 * Returns a copy of this {@code LocalTime} with the specified number of seconds added. 1102 * This adds the specified number of seconds to this time, returning a new time. 1107 * @param secondstoAdd the seconds to add, may be negative 1108 * @return a {@code LocalTime} based on this time with the seconds added, not null 1235 * Returns a copy of this {@code LocalTime} with the specified number of seconds subtracted. 1237 * This subtracts the specified number of seconds fro [all...] |
/libcore/ojluni/src/main/java/sun/util/calendar/ |
H A D | CalendarDate.java | 76 private int seconds; field in class:CalendarDate 259 return seconds; 262 public CalendarDate setSeconds(int seconds) { argument 263 if (this.seconds != seconds) { 264 this.seconds = seconds; 272 seconds += n; 319 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { argument 322 setSeconds(seconds); 327 addTimeOfDay(int hours, int minutes, int seconds, int millis) argument [all...] |
H A D | ImmutableGregorianDate.java | 125 public CalendarDate setSeconds(int seconds) { argument 157 public CalendarDate setTimeOfDay(int hours, int minutes, int seconds, int millis) { argument 161 public CalendarDate addTimeOfDay(int hours, int minutes, int seconds, int millis) { argument
|
H A D | AbstractCalendar.java | 51 // The constants assume no leap seconds support. 251 int seconds = time / SECOND_IN_MILLIS; 255 cdate.setSeconds(seconds);
|
/libcore/ojluni/src/main/java/javax/sql/ |
H A D | CommonDataSource.java | 86 * <p>Sets the maximum time in seconds that this data source will wait 93 * @param seconds the data source login time limit 98 void setLoginTimeout(int seconds) throws SQLException; argument 101 * Gets the maximum time in seconds that this data source can wait
|
H A D | RowSet.java | 386 * Retrieves the maximum number of seconds the driver will wait for 390 * @return the current query timeout limit in seconds; zero means 399 * a statement to execute to the given number of seconds. 402 * @param seconds the new query timeout limit in seconds; zero means 407 void setQueryTimeout(int seconds) throws SQLException; argument
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
H A D | DatatypeFactory.java | 208 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 224 * @param seconds of this <code>Duration</code> 238 final BigDecimal seconds); 242 * specifying the <code>Duration</code> as isPositive, years, months, days, hours, minutes, seconds.</p> 253 * @param seconds of this <code>Duration</code> 266 * BigDecimal seconds) 275 final int seconds) { 292 // seconds may not be set 293 BigDecimal realSeconds = (seconds != DatatypeConstants.FIELD_UNDEFINED) ? BigDecimal.valueOf((long) seconds) 231 newDuration( final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) argument 268 newDuration( final boolean isPositive, final int years, final int months, final int days, final int hours, final int minutes, final int seconds) argument 922 newXMLGregorianCalendarTime( final int hours, final int minutes, final int seconds, final int timezone) argument 960 newXMLGregorianCalendarTime( final int hours, final int minutes, final int seconds, final BigDecimal fractionalSecond, final int timezone) argument 998 newXMLGregorianCalendarTime( final int hours, final int minutes, final int seconds, final int milliseconds, final int timezone) argument [all...] |
H A D | Duration.java | 35 * minutes, and seconds) plus a sign (+/-) field.</p> 39 * and the seconds field has a non-negative decimal or null. 294 * @return seconds in the integer value. The fraction of seconds 305 * <p>If the seconds field carries more digits than millisecond order, 342 * <p>If the seconds field carries more digits than millisecond order, 384 * number will be a non-negative integer. In case of seconds, 645 * "PT1M" (1 min) * "0.3" = "PT18S" (18 seconds) 656 * of {@link BigDecimal}. Since all the fields except seconds are 714 * <li>the computed days, along with the hours, minutes and seconds [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKDuration.java | 1089 public void plus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) { argument 1090 Duration t = Duration.ofSeconds(seconds, nanos).plus(Duration.ofSeconds(otherSeconds, otherNanos)); 1300 public void plusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 1301 Duration t = Duration.ofSeconds(seconds, nanos); 1376 public void plusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 1377 Duration t = Duration.ofSeconds(seconds, nanos); 1383 public void plusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 1384 Duration t = Duration.ofSeconds(seconds + 1, nanos); 1390 public void plusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 1391 Duration t = Duration.ofSeconds(seconds 1502 plusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1708 minus(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) argument 1919 minusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1995 minusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 2002 minusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 2009 minusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 2121 minusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 2237 multipliedBy(long seconds, int nanos, int multiplicand, long expectedSeconds, int expectedNanos) argument 2354 dividedBy(long seconds, int nanos, int divisor, long expectedSeconds, int expectedNanos) argument 2362 dividedByZero(long seconds, int nanos, int divisor, long expectedSeconds, int expectedNanos) argument 2597 withNanos_long(long seconds, int nanos, int amount, long expectedSeconds, int expectedNanoOfSecond) argument 2629 withSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 2683 test_toString(long seconds, int nanos, String expected) argument [all...] |
H A D | TCKInstant.java | 691 public void test_plusTemporalAmount(TemporalUnit unit, TemporalAmount amount, int seconds, int nanos) { argument 694 Instant expected = Instant.ofEpochSecond(seconds, nanos); 915 public void plus_Duration(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) { argument 916 Instant i = Instant.ofEpochSecond(seconds, nanos).plus(Duration.ofSeconds(otherSeconds, otherNanos)); 935 public void plus_longTemporalUnit(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) { argument 936 Instant i = Instant.ofEpochSecond(seconds, nanos).plus(otherSeconds, SECONDS).plus(otherNanos, NANOS); 985 public void plusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 986 Instant t = Instant.ofEpochSecond(seconds, nanos); 1064 public void plusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) { argument 1065 Instant t = Instant.ofEpochSecond(seconds, nano 1071 plusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1078 plusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1193 plusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1415 minus_Duration(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) argument 1435 minus_longTemporalUnit(long seconds, int nanos, long otherSeconds, int otherNanos, long expectedSeconds, int expectedNanoOfSecond) argument 1485 minusSeconds_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1564 minusMillis_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1572 minusMillis_long_oneMore(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1580 minusMillis_long_minusOneLess(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument 1695 minusNanos_long(long seconds, int nanos, long amount, long expectedSeconds, int expectedNanoOfSecond) argument [all...] |
H A D | TCKZoneOffset.java | 640 private void doTestOffset(ZoneOffset offset, int hours, int minutes, int seconds) { argument 641 assertEquals(offset.getTotalSeconds(), hours * 60 * 60 + minutes * 60 + seconds); 643 if (hours == 0 && minutes == 0 && seconds == 0) { 646 String str = (hours < 0 || minutes < 0 || seconds < 0) ? "-" : "+"; 650 if (seconds != 0) { 652 str += Integer.toString(Math.abs(seconds) + 100).substring(1); 657 assertEquals(offset, ZoneOffset.ofHoursMinutesSeconds(hours, minutes, seconds)); 658 if (seconds == 0) {
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | ChronoLocalDateTimeImpl.java | 333 ChronoLocalDateTimeImpl<D> plusSeconds(long seconds) { argument 334 return plusWithOverflow(date, 0, 0, seconds, 0); 342 private ChronoLocalDateTimeImpl<D> plusWithOverflow(D newDate, long hours, long minutes, long seconds, long nanos) { argument 344 if ((hours | minutes | seconds | nanos) == 0) { 348 seconds / SECONDS_PER_DAY + // max/24*60*60 352 (seconds % SECONDS_PER_DAY) * NANOS_PER_SECOND + // max 86400000000000
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Statement.java | 199 * Retrieves the number of seconds the driver will 204 * @return the current query timeout limit in seconds; zero means there is 213 * Sets the number of seconds the driver will wait for a 214 * <code>Statement</code> object to execute to the given number of seconds. 231 * @param seconds the new query timeout limit in seconds; zero means 235 * or the condition seconds >= 0 is not satisfied 238 void setQueryTimeout(int seconds) throws SQLException; argument
|
H A D | DriverManager.java | 371 * Sets the maximum time in seconds that a driver will wait 374 * @param seconds the login time limit in seconds; zero means there is no limit 377 public static void setLoginTimeout(int seconds) { argument 378 loginTimeout = seconds; 382 * Gets the maximum time in seconds that a driver can wait 385 * @return the driver login time limit in seconds
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 58 * <p>As the data uses 32 bits to store the time in seconds the time range is limited to roughly 114 * The times (in seconds) at which the offsets changes for any reason, whether that is a change 125 * and contains the times in seconds converted to long to make them safer to use. 157 * The offset parts of the transition types, in seconds. 160 * seconds and {@link #mRawOffset} is say +3600 then this will have a value of +3600. 197 // 2 per year with 2^32 seconds would give ~272 transitions. 310 // Convert the current time in millis into seconds. Unlike other places that convert 311 // time in milliseconds into seconds in order to compare with transition time this 360 // tzdata uses seconds, but Java uses milliseconds. 406 * Find the transition in the {@code timezone} in effect at {@code seconds} 412 findTransitionIndex(long seconds) argument 431 findOffsetIndexForTimeInSeconds(long seconds) argument [all...] |
/libcore/luni/src/test/java/libcore/libcore/util/ |
H A D | ZoneInfoTest.java | 115 * Checks to make sure that rounding the time from milliseconds to seconds does not cause issues 149 * Checks to make sure that rounding the time from milliseconds to seconds does not cause issues 548 private static int secondsInMillis(int seconds) { argument 549 return seconds * 1000;
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Date.java | 61 * 24 × 60 × 60 = 86400 seconds 66 * year 1995 was 61 seconds long, thanks to an added leap second. 79 * seconds are introduced as needed into UTC so as to keep UTC within 80 * 0.9 seconds of UT1, which is a version of UT with certain 84 * <i>not</i> adjusted for leap seconds. An interesting source of 97 * year, month, date, hours, minutes, and seconds values, the 111 * 61 occur only for leap seconds and even then only in Java 112 * implementations that actually track leap seconds correctly. Because 113 * of the manner in which leap seconds are currently introduced, it is 114 * extremely unlikely that two leap seconds wil 894 setSeconds(int seconds) argument [all...] |