Home
last modified time | relevance | path

Searched refs:hour (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java216 private final byte hour; field in LocalTime
291 public static LocalTime of(int hour, int minute) { in of() argument
292 HOUR_OF_DAY.checkValidValue(hour); in of()
294 return HOURS[hour]; // for performance in of()
297 return new LocalTime(hour, minute, 0, 0); in of()
312 public static LocalTime of(int hour, int minute, int second) { in of() argument
313 HOUR_OF_DAY.checkValidValue(hour); in of()
315 return HOURS[hour]; // for performance in of()
319 return new LocalTime(hour, minute, second, 0); in of()
334 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { in of() argument
[all …]
DLocalDateTime.java230 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute) { in of() argument
232 LocalTime time = LocalTime.of(hour, minute); in of()
255 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
257 LocalTime time = LocalTime.of(hour, minute, second); in of()
280 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
282 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
305 public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute) { in of() argument
307 LocalTime time = LocalTime.of(hour, minute); in of()
330 …public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int seco… in of() argument
332 LocalTime time = LocalTime.of(hour, minute, second); in of()
[all …]
DOffsetTime.java230 …public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)… in of() argument
231 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); in of()
745 public OffsetTime withHour(int hour) { in withHour() argument
746 return with(time.withHour(hour), offset); in withHour()
DLocalDate.java1842 public LocalDateTime atTime(int hour, int minute) { in atTime() argument
1843 return atTime(LocalTime.of(hour, minute)); in atTime()
1861 public LocalDateTime atTime(int hour, int minute, int second) { in atTime() argument
1862 return atTime(LocalTime.of(hour, minute, second)); in atTime()
1880 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { in atTime() argument
1881 return atTime(LocalTime.of(hour, minute, second, nanoOfSecond)); in atTime()
DOffsetDateTime.java300 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { in of() argument
301 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
1054 public OffsetDateTime withHour(int hour) { in withHour() argument
1055 return with(dateTime.withHour(hour), offset); in withHour()
DZonedDateTime.java333 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { in of() argument
334 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
1419 public ZonedDateTime withHour(int hour) { in withHour() argument
1420 return resolveLocal(dateTime.withHour(hour)); in withHour()
/libcore/ojluni/src/main/java/java/sql/
DTime.java58 public Time(int hour, int minute, int second) { in Time() argument
59 super(70, 0, 1, hour, minute, second); in Time()
91 int hour; in valueOf() local
103 hour = Integer.parseInt(s.substring(0, firstColon)); in valueOf()
111 return new Time(hour, minute, second); in valueOf()
120 int hour = super.getHours(); in toString() local
127 if (hour < 10) { in toString()
128 hourString = "0" + hour; in toString()
130 hourString = Integer.toString(hour); in toString()
DTimestamp.java88 int hour, int minute, int second, int nano) { in Timestamp() argument
89 super(year, month, date, hour, minute, second); in Timestamp()
178 int hour; in valueOf() local
241 hour = Integer.parseInt(time_s.substring(0, firstColon)); in valueOf()
263 return new Timestamp(year - 1900, month - 1, day, hour, minute, second, a_nanos); in valueOf()
279 int hour = super.getHours(); in toString() local
311 if (hour < 10) { in toString()
312 hourString = "0" + hour; in toString()
314 hourString = Integer.toString(hour); in toString()
/libcore/luni/src/main/java/javax/xml/datatype/
DXMLGregorianCalendar.java327 public void setTime(int hour, int minute, int second) { in setTime() argument
330 hour, in setTime()
347 public abstract void setHour(int hour); in setHour() argument
417 int hour, in setTime() argument
422 setHour(hour); in setTime()
444 public void setTime(int hour, int minute, int second, int millisecond) { in setTime() argument
446 setHour(hour); in setTime()
DDatatypeFactory.java469 final BigInteger hour, in newDurationDayTime() argument
478 hour, in newDurationDayTime()
511 final int hour, in newDurationDayTime() argument
516 day, hour, minute, second); in newDurationDayTime()
792 final int hour, in newXMLGregorianCalendar() argument
828 final int hour, in newXMLGregorianCalendar() argument
855 hour, in newXMLGregorianCalendar()
/libcore/luni/src/test/java/libcore/javax/xml/datatype/
DXMLGregorianCalendarTest.java169 private int hour; field in XMLGregorianCalendarTest.XMLGregorianCalendarImpl
178 year = month = day = hour = minute = second = millisecond = timezoneOffset = 0; in clear()
184 year = month = day = hour = minute = second = millisecond = timezoneOffset = 0; in reset()
214 public void setHour(int hour) { in setHour() argument
215 this.hour = hour; in setHour()
270 return hour; in getHour()
293 if (hour != rhs.getHour()) return Integer.signum(hour - rhs.getHour()); in compare()
/libcore/ojluni/src/main/java/java/util/
DDate.java458 int hour = -1; in parse() local
537 if (hour < 0) in parse()
538 hour = (byte) n; in parse()
552 else if (hour >= 0 && min < 0) in parse()
582 if (hour > 12 || hour < 1) in parse()
584 else if (hour < 12) in parse()
585 hour += 12; in parse()
587 if (hour > 12 || hour < 1) in parse()
589 else if (hour == 12) in parse()
590 hour = 0; in parse()
[all …]
DTimeZone.java636 int hour; in getCustomTimeZone() local
639 hour = Integer.parseInt(m.group(1)); in getCustomTimeZone()
647 if (hour < 0 || hour > 23 || minute < 0 || minute > 59) { in getCustomTimeZone()
652 int raw = (hour * 3600000) + (minute * 60000); in getCustomTimeZone()
657 String cleanId = String.format(Locale.ROOT, "GMT%c%02d:%02d", sign, hour, minute); in getCustomTimeZone()
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1558 int hour = 0; in test_plusMinutes_one() local
1564 hour++; in test_plusMinutes_one()
1567 assertEquals(t.getHour(), hour); in test_plusMinutes_one() local
1575 int hour; in test_plusMinutes_fromZero() local
1580 hour = 22; in test_plusMinutes_fromZero()
1583 hour = 23; in test_plusMinutes_fromZero()
1586 hour = 1; in test_plusMinutes_fromZero()
1589 hour = 0; in test_plusMinutes_fromZero()
1592 assertEquals(t.getHour(), hour); in test_plusMinutes_fromZero() local
1634 int hour = 0; in test_plusSeconds_one() local
[all …]
DTCKLocalDateTime.java1817 int hour = 0;
1824 hour++;
1829 assertEquals(t.getHour(), hour);
1867 int hour = 0;
1879 hour++;
1884 assertEquals(t.getHour(), hour);
1897 int hour = 22;
1906 final Object[] ret = new Object[] {i, date, hour, min, sec};
1915 hour++;
1918 if (hour == 24) {
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKDateTimeFormatters.java451 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoLocalTime() argument
453 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoLocalTime()
468 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoLocalTime() argument
471 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoLocalTime()
521 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoOffsetTime() argument
523 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoOffsetTime()
538 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_parse_isoOffsetTime() argument
541 Expected expected = createTime(hour, min, sec, nano); in test_parse_isoOffsetTime()
591 Integer hour, Integer min, Integer sec, Integer nano, String offsetId, String zoneId, in test_print_isoTime() argument
593 … TemporalAccessor test = buildAccessor(null, null, null, hour, min, sec, nano, offsetId, zoneId); in test_print_isoTime()
[all …]
DTCKDateTimeParseResolver.java605 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToTime() argument
607 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveFourToTime()
632 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveThreeToTime() argument
634 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveThreeToTime()
658 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToDateTime() argument
661 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveFourToDateTime()
/libcore/ojluni/src/main/java/java/util/zip/
DZipUtils.java93 int hour = (int) ((dtime >> 11) & 0x1f); in dosToJavaTime() local
97 if (month > 0 && month < 13 && day > 0 && hour < 24 && minute < 60 && second < 60) { in dosToJavaTime()
99 LocalDateTime ldt = LocalDateTime.of(year, month, day, hour, minute, second); in dosToJavaTime()
106 return overflowDosToJavaTime(year, month, day, hour, minute, second); in dosToJavaTime()
114 int hour, int minute, int second) { in overflowDosToJavaTime() argument
115 return new Date(year - 1900, month - 1, day, hour, minute, second).getTime(); in overflowDosToJavaTime()
/libcore/ojluni/src/main/java/java/time/chrono/
DChronology.java740 int hour, int minute, int second, ZoneOffset zoneOffset) { in epochSecond() argument
742 HOUR_OF_DAY.checkValidValue(hour); in epochSecond()
746 long timeinSec = (hour * 60 + minute) * 60 + second; in epochSecond()
769 int hour, int minute, int second, ZoneOffset zoneOffset) { in epochSecond() argument
771 …return epochSecond(prolepticYear(era, yearOfEra), month, dayOfMonth, hour, minute, second, zoneOff… in epochSecond()
DIsoChronology.java293 int hour, int minute, int second, ZoneOffset zoneOffset) { in epochSecond() argument
297 HOUR_OF_DAY.checkValidValue(hour); in epochSecond()
329 timeinSec = (hour * 60 + minute ) * 60 + second; in epochSecond()
/libcore/ojluni/src/main/java/sun/security/util/
DDerInputBuffer.java313 int year, month, day, hour, minute, second, millis; in getTime() local
340 hour = 10 * Character.digit((char)buf[pos++], 10); in getTime()
341 hour += Character.digit((char)buf[pos++], 10); in getTime()
396 || hour >= 24 || minute >= 60 || second >= 60) in getTime()
406 date.setTimeOfDay(hour, minute, second, millis); in getTime()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java151 int hour = 0; in testSetSelfConsistent() local
155 calendar.set(year, month, day, hour, minute); in testSetSelfConsistent()
159 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); in testSetSelfConsistent()
214 int year, int month, int day, int hour, int minute) { in assertCalendarEquals() argument
218 assertEquals("hour", hour, calendar.get(Calendar.HOUR_OF_DAY)); in assertCalendarEquals()
DFormatterTest.java246 private static void checkFormat(String expected, String pattern, int hour) { in checkFormat() argument
250 c.set(2013, Calendar.JANUARY, 1, hour, 00); in checkFormat()
/libcore/ojluni/annotations/hiddenapi/java/time/
DOffsetDateTime.java114 int hour, in of() argument
253 public java.time.OffsetDateTime withHour(int hour) { in withHour() argument
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java371 int hour = cal.get(Calendar.HOUR); in test_setII() local
372 cal.set(Calendar.HOUR, hour); in test_setII()
380 hour = cal.get(Calendar.HOUR); in test_setII()
384 assertEquals(hour, cal.get(Calendar.HOUR)); in test_setII()

12