/libcore/luni/src/test/java/libcore/java/util/ |
H A D | FormatterTest.java | 181 private static void checkFormat(String expected, String pattern, int hour) { argument 185 c.set(2013, Calendar.JANUARY, 1, hour, 00);
|
H A D | CalendarTest.java | 68 * drop an hour to keep the hour+minute constant unless that prevents the 151 int hour = 0; 155 calendar.set(year, month, day, hour, minute); 159 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); 171 // GMT is one hour earlier than Europe/Paris, hence hour of day is 9 rather than 10 214 int year, int month, int day, int hour, int minute) { 218 assertEquals("hour", hour, calenda 213 assertCalendarEquals(Calendar calendar, int year, int month, int day, int hour, int minute) argument [all...] |
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Time.java | 42 * given values for the hour, minute, and second. 50 * @param hour 0 to 23 58 public Time(int hour, int minute, int second) { argument 59 super(70, 0, 1, hour, minute, second); 91 int hour; 103 hour = Integer.parseInt(s.substring(0, firstColon)); 111 return new Time(hour, minute, second); 120 int hour = super.getHours(); 127 if (hour < 10) { 128 hourString = "0" + hour; [all...] |
H A D | Timestamp.java | 79 * @param hour 0 to 23 88 int hour, int minute, int second, int nano) { 89 super(year, month, date, hour, minute, second); 178 int hour; 241 hour = Integer.parseInt(time_s.substring(0, firstColon)); 263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos); 279 int hour = super.getHours(); 311 if (hour < 10) { 312 hourString = "0" + hour; 314 hourString = Integer.toString(hour); 87 Timestamp(int year, int month, int date, int hour, int minute, int second, int nano) argument [all...] |
/libcore/luni/src/main/java/javax/xml/datatype/ |
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> 411 int minutes = (int) (val % 60L); // 60 minutes per hour 428 BigInteger minutes = BigInteger.valueOf(val % 60L); // 60 minutes per hour 438 * <code>day</code>, <code>hour</cod 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...] |
H A D | XMLGregorianCalendar.java | 100 * <tr id="datetimefield-hour"> 101 * <td>hour</td> 199 * int hour, 208 * int hour, 314 * @param hour value constraints are summarized in 315 * <a href="#datetimefield-hour">hour field of date/time field mapping table</a>. 327 public void setTime(int hour, int minute, int second) { argument 330 hour, 342 * @param hour valu 347 setHour(int hour) argument 416 setTime( int hour, int minute, int second, BigDecimal fractional) argument 444 setTime(int hour, int minute, int second, int millisecond) argument [all...] |
/libcore/ojluni/src/test/java/time/test/java/time/ |
H A D | TestZoneId.java | 654 private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, ZoneOffset offset) { argument 655 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); 658 private ZonedDateTime createZDT(int year, int month, int day, int hour, int min, int sec, int nano, ZoneId zone) { argument 659 return LocalDateTime.of(year, month, day, hour, min, sec, nano).atZone(zone);
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | LocalDate.java | 1707 * specified hour and minute. 1712 * @param hour the hour-of-day to use, from 0 to 23 1713 * @param minute the minute-of-hour to use, from 0 to 59 1717 public LocalDateTime atTime(int hour, int minute) { argument 1718 return atTime(LocalTime.of(hour, minute)); 1725 * specified hour, minute and second. 1730 * @param hour the hour-of-day to use, from 0 to 23 1731 * @param minute the minute-of-hour t 1736 atTime(int hour, int minute, int second) argument 1755 atTime(int hour, int minute, int second, int nanoOfSecond) argument [all...] |
H A D | LocalTime.java | 101 * often viewed as hour-minute-second. 141 * Constants for the local time of each hour. 159 * Minutes per hour. 171 * Seconds per hour. 195 * Nanos per hour. 209 * The hour. 211 private final byte hour; field in class:LocalTime 279 * Obtains an instance of {@code LocalTime} from an hour and minute. 281 * This returns a {@code LocalTime} with the specified hour and minute. 284 * @param hour th 289 of(int hour, int minute) argument 310 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 863 withHour(int hour) 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. 221 * @param hour the hour-of-day to represent, from 0 to 23 222 * @param minute the minute-of-hour to represent, from 0 to 59 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 608 * Gets the hour-of-day field. 610 * @return the hour 744 withHour(int hour) 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. 216 * day-of-month, hour and minute. 223 * @param hour the hour-of-day to represent, from 0 to 23 224 * @param minute the minute-of-hour to represent, from 0 to 59 229 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute) { argument 231 LocalTime time = LocalTime.of(hour, minute); 237 * day, hour, minute and second, setting the nanosecond to zero. 240 * day-of-month, hour, minut 254 of(int year, Month month, int dayOfMonth, int hour, int minute, int second) argument 279 of(int year, Month month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 304 of(int year, int month, int dayOfMonth, int hour, int minute) 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 1046 withHour(int hour) argument [all...] |
H A D | OffsetDateTime.java | 275 * hour, minute, second, nanosecond and offset. 288 * @param hour the hour-of-day to represent, from 0 to 23 289 * @param minute the minute-of-hour to represent, from 0 to 59 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 821 * Gets the hour-of-day field. 823 * @return the hour-of-day, from 0 to 23 830 * Gets the minute-of-hour fiel 297 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) argument 1054 withHour(int hour) argument [all...] |
H A D | ZonedDateTime.java | 250 * For a typical one hour daylight savings change, the local date-time will be 251 * moved one hour later into the offset typically corresponding to "summer". 279 * For a typical one hour daylight savings change, the local date-time will be 280 * moved one hour later into the offset typically corresponding to "summer". 292 * hour, minute, second, nanosecond and time-zone. 309 * For a typical one hour daylight savings change, the local date-time will be 310 * moved one hour later into the offset typically corresponding to "summer". 321 * @param hour the hour-of-day to represent, from 0 to 23 322 * @param minute the minute-of-hour t 330 of( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneId zone) argument 1420 withHour(int hour) argument [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
H A D | TCKZoneRules.java | 1091 private Instant createInstant(int year, int month, int day, int hour, int min, ZoneOffset offset) { argument 1092 return LocalDateTime.of(year, month, day, hour, min).toInstant(offset); 1095 private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, ZoneOffset offset) { argument 1096 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset);
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | ZoneInfo.java | 711 private int hour; field in class:ZoneInfo.WallTime 1092 public void setHour(int hour) { argument 1093 this.hour = hour; 1133 return hour; 1164 calendar.set(Calendar.HOUR_OF_DAY, hour); 1174 hour = calendar.get(Calendar.HOUR_OF_DAY);
|
/libcore/ojluni/src/test/java/time/tck/java/time/format/ |
H A D | TCKDateTimeFormatters.java | 451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, 453 TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); 468 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, 471 Expected expected = createTime(hour, min, sec, nano); 521 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, 523 TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); 538 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, 541 Expected expected = createTime(hour, min, sec, nano); 591 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, 593 TemporalAccessor test = buildAccessor(null, null, null, hour, mi 450 test_print_isoLocalTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 467 test_parse_isoLocalTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 520 test_print_isoOffsetTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 537 test_parse_isoOffsetTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 590 test_print_isoTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 607 test_parse_isoTime( Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 670 test_print_isoLocalDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 688 test_parse_isoLocalDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 749 test_print_isoOffsetDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 767 test_parse_isoOffsetDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 838 test_print_isoZonedDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 856 test_parse_isoZonedDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 922 test_print_isoDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String expected, Class<?> expectedEx) argument 940 test_parse_isoDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, String input, Class<?> invalid) argument 1294 createTime(Integer hour, Integer min, Integer sec, Integer nano) argument 1311 createDateTime( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano) argument 1339 buildAccessor( Integer year, Integer month, Integer day, Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId) argument [all...] |
H A D | TCKDateTimeParseResolver.java | 602 long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { 604 .parseDefaulting(HOUR_OF_DAY, hour) 629 long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { 631 .parseDefaulting(HOUR_OF_DAY, hour) 655 long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { 658 .parseDefaulting(HOUR_OF_DAY, hour) 601 test_resolveFourToTime(ResolverStyle style, long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) argument 628 test_resolveThreeToTime(ResolverStyle style, long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) argument 654 test_resolveFourToDateTime(ResolverStyle style, long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
H A D | TCKLocalTime.java | 803 // The hour, minute and second will be unchanged. 827 // The hour, minute and second will be unchanged. 852 // The hour, minute and second will be unchanged. 876 // The hour, minute and nano-of-second will be unchanged. 899 // Returns a {@code LocalTime} with the specified minute-of-hour. 900 // The hour, second-of-minute and nano-of-second will be unchanged. 924 // Returns a {@code LocalTime} with the specified hour-of-am-pm. 925 // The AM/PM, minute-of-hour, second-of-minute and nano-of-second will be unchanged. 938 // Returns a {@code LocalTime} with the specified clock-hour-of-am-pm. 939 // The AM/PM, minute-of-hour, secon 1668 test_plusSeconds_fromZero(int seconds, int hour, int min, int sec) argument 1781 test_plusNanos_fromZero(long nanoseconds, int hour, int min, int sec, int nanos) argument 2101 test_minusSeconds_fromZero(int seconds, int hour, int min, int sec) argument 2229 test_minusNanos_fromZero(long nanoseconds, int hour, int min, int sec, int nanos) argument 2653 time(int hour, int min, int sec, int nano) argument [all...] |
H A D | TCKZonedDateTime.java | 364 check(test, 2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS); // one hour later in summer offset 401 check(test, 2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS); // one hour later in summer offset 451 check(test, 2008, 3, 30, 3, 30, 0, 0, OFFSET_0200, ZONE_PARIS); // one hour later in summer offset 2412 int hour, int minute) { 2413 return LocalDateTime.of(year, month, dayOfMonth, hour, minute); 2418 int hour, int minute, int second, int nanoOfSecond) { 2419 return LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); 2424 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) { 2425 return ZonedDateTime.ofStrict(LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond), offset, zoneId); 2410 dateTime( int year, int month, int dayOfMonth, int hour, int minute) argument 2416 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond) argument 2422 dateTime( int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset, ZoneId zoneId) argument
|
H A D | TCKLocalDateTime.java | 1823 int hour = 0; 1830 hour++; 1835 assertEquals(t.getHour(), hour); 1873 int hour = 0; 1885 hour++; 1890 assertEquals(t.getHour(), hour); 1903 int hour = 22; 1912 final Object[] ret = new Object[] {i, date, hour, min, sec}; 1921 hour++; 1924 if (hour 1944 test_plusSeconds_fromZero(int seconds, LocalDate date, int hour, int min, int sec) argument 2048 test_plusNanos_fromZero(long nanoseconds, LocalDate date, int hour, int min, int sec, int nanos) argument 2641 test_minusSeconds_fromZero(int seconds, LocalDate date, int hour, int min, int sec) argument 2746 test_minusNanos_fromZero(long nanoseconds, LocalDate date, int hour, int min, int sec, int nanos) argument 3278 dtEpoch(int hour, int min, int sec, int nano) argument 3282 dt(int year, int month, int day, int hour, int min, int sec, int nano) argument [all...] |