Searched refs:hour (Results 1 - 24 of 24) sorted by relevance

/libcore/ojluni/src/main/java/java/sql/
H A DTime.java42 * 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 DTimestamp.java79 * @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/ojluni/src/main/java/java/time/
H A DLocalTime.java101 * 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 DLocalDateTime.java105 * 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 DOffsetTime.java101 * 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 DOffsetDateTime.java275 * 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 DLocalDate.java1707 * 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 DZonedDateTime.java250 * 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/luni/src/main/java/javax/xml/datatype/
H A DXMLGregorianCalendar.java100 * <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...]
H A DDatatypeFactory.java148 * 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...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKLocalTime.java803 // 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 DTCKLocalDateTime.java1823 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...]
H A DTCKZonedDateTime.java364 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
/libcore/ojluni/src/main/java/java/util/
H A DDate.java48 * functions. It allowed the interpretation of dates as year, month, day, hour,
106 * <li>An hour is represented by an integer from 0 to 23. Thus, the hour
107 * from midnight to 1 a.m. is hour 0, and the hour from noon to 1
108 * p.m. is hour 12.
294 * hour of the day, minute within the hour, and second within the
372 * expressed in 24-hour time format without punctuation. A
398 * <li>If the number is followed by a colon, it is regarded as an hour,
[all...]
H A DTimeZone.java465 * (i.e., one hour) if a call to {@link #useDaylightTime()}
626 int hour;
629 hour = Integer.parseInt(m.group(1));
637 if (hour < 0 || hour > 23 || minute < 0 || minute > 59) {
642 int raw = (hour * 3600000) + (minute * 60000);
647 String cleanId = String.format(Locale.ROOT, "GMT%c%02d:%02d", sign, hour, minute);
/libcore/ojluni/src/main/java/sun/security/util/
H A DDerInputBuffer.java313 int year, month, day, hour, minute, second, millis;
340 hour = 10 * Character.digit((char)buf[pos++], 10);
341 hour += Character.digit((char)buf[pos++], 10);
396 || hour >= 24 || minute >= 60 || second >= 60)
406 date.setTimeOfDay(hour, minute, second, millis);
/libcore/ojluni/src/test/java/time/tck/java/time/format/
H A DTCKDateTimeFormatters.java451 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 DTCKDateTimeParseResolver.java602 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/luni/src/test/java/libcore/java/util/
H A DCalendarTest.java70 * drop an hour to keep the hour+minute constant unless that prevents the
153 int hour = 0;
157 calendar.set(year, month, day, hour, minute);
161 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY));
173 // GMT is one hour earlier than Europe/Paris, hence hour of day is 9 rather than 10
216 int year, int month, int day, int hour, int minute) {
220 assertEquals("hour", hour, calenda
215 assertCalendarEquals(Calendar calendar, int year, int month, int day, int hour, int minute) argument
[all...]
H A DFormatterTest.java181 private static void checkFormat(String expected, String pattern, int hour) { argument
185 c.set(2013, Calendar.JANUARY, 1, hour, 00);
/libcore/luni/src/main/java/libcore/util/
H A DZoneInfo.java711 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/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCalendarTest.java371 int hour = cal.get(Calendar.HOUR);
372 cal.set(Calendar.HOUR, hour);
380 hour = cal.get(Calendar.HOUR);
384 assertEquals(hour, cal.get(Calendar.HOUR));
516 // test by hour
/libcore/ojluni/src/test/java/time/test/java/time/
H A DTestZoneId.java654 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/test/java/time/tck/java/time/zone/
H A DTCKZoneRules.java1089 private Instant createInstant(int year, int month, int day, int hour, int min, ZoneOffset offset) { argument
1090 return LocalDateTime.of(year, month, day, hour, min).toInstant(offset);
1093 private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, ZoneOffset offset) { argument
1094 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset);

Completed in 1997 milliseconds