Home
last modified time | relevance | path

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

12

/libcore/ojluni/src/main/java/java/time/
DLocalTime.java211 private final byte hour; field in LocalTime
289 public static LocalTime of(int hour, int minute) { in of() argument
290 HOUR_OF_DAY.checkValidValue(hour); in of()
292 return HOURS[hour]; // for performance in of()
295 return new LocalTime(hour, minute, 0, 0); in of()
310 public static LocalTime of(int hour, int minute, int second) { in of() argument
311 HOUR_OF_DAY.checkValidValue(hour); in of()
313 return HOURS[hour]; // for performance in of()
317 return new LocalTime(hour, minute, second, 0); in of()
332 public static LocalTime of(int hour, int minute, int second, int nanoOfSecond) { in of() argument
[all …]
DLocalDateTime.java229 public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute) { in of() argument
231 LocalTime time = LocalTime.of(hour, minute); in of()
254 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
256 LocalTime time = LocalTime.of(hour, minute, second); in of()
279 …public static LocalDateTime of(int year, Month month, int dayOfMonth, int hour, int minute, int se… in of() argument
281 LocalTime time = LocalTime.of(hour, minute, second, nanoOfSecond); in of()
304 public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute) { in of() argument
306 LocalTime time = LocalTime.of(hour, minute); in of()
329 …public static LocalDateTime of(int year, int month, int dayOfMonth, int hour, int minute, int seco… in of() argument
331 LocalTime time = LocalTime.of(hour, minute, second); in of()
[all …]
DOffsetTime.java229 …public static OffsetTime of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset)… in of() argument
230 return new OffsetTime(LocalTime.of(hour, minute, second, nanoOfSecond), offset); in of()
744 public OffsetTime withHour(int hour) { in withHour() argument
745 return with(time.withHour(hour), offset); in withHour()
DLocalDate.java1717 public LocalDateTime atTime(int hour, int minute) { in atTime() argument
1718 return atTime(LocalTime.of(hour, minute)); in atTime()
1736 public LocalDateTime atTime(int hour, int minute, int second) { in atTime() argument
1737 return atTime(LocalTime.of(hour, minute, second)); in atTime()
1755 public LocalDateTime atTime(int hour, int minute, int second, int nanoOfSecond) { in atTime() argument
1756 return atTime(LocalTime.of(hour, minute, second, nanoOfSecond)); in atTime()
DOffsetDateTime.java299 int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) { in of() argument
300 … 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.java332 int hour, int minute, int second, int nanoOfSecond, ZoneId zone) { in of() argument
333 … LocalDateTime dt = LocalDateTime.of(year, month, dayOfMonth, hour, minute, second, nanoOfSecond); in of()
1420 public ZonedDateTime withHour(int hour) { in withHour() argument
1421 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/ojluni/src/test/java/time/tck/java/time/
DTCKLocalTime.java1530 int hour = 0; in test_plusMinutes_one() local
1536 hour++; in test_plusMinutes_one()
1539 assertEquals(t.getHour(), hour); in test_plusMinutes_one() local
1547 int hour; in test_plusMinutes_fromZero() local
1552 hour = 22; in test_plusMinutes_fromZero()
1555 hour = 23; in test_plusMinutes_fromZero()
1558 hour = 1; in test_plusMinutes_fromZero()
1561 hour = 0; in test_plusMinutes_fromZero()
1564 assertEquals(t.getHour(), hour); in test_plusMinutes_fromZero() local
1606 int hour = 0; in test_plusSeconds_one() local
[all …]
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 == 24) {
[all …]
DTCKZonedDateTime.java2412 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, nano…
/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.java633 int hour; in getCustomTimeZone() local
636 hour = Integer.parseInt(m.group(1)); in getCustomTimeZone()
644 if (hour < 0 || hour > 23 || minute < 0 || minute > 59) { in getCustomTimeZone()
649 int raw = (hour * 3600000) + (minute * 60000); in getCustomTimeZone()
654 String cleanId = String.format(Locale.ROOT, "GMT%c%02d:%02d", sign, hour, minute); in getCustomTimeZone()
/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.java602 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToTime() argument
604 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveFourToTime()
629 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveThreeToTime() argument
631 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveThreeToTime()
655 … long hour, long min, long sec, long nano, LocalTime expectedTime, Period excessPeriod) { in test_resolveFourToDateTime() argument
658 .parseDefaulting(HOUR_OF_DAY, hour) in test_resolveFourToDateTime()
/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.java181 private static void checkFormat(String expected, String pattern, int hour) { in checkFormat() argument
185 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()
/libcore/tools/testmapping/
Dgen_smoke_tests.py97 hour=int(cts_match.group(3)),
/libcore/ojluni/src/test/java/time/test/java/time/
DTestZoneId.java654 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument
655 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()
658 …private ZonedDateTime createZDT(int year, int month, int day, int hour, int min, int sec, int nano… in createZDT() argument
659 return LocalDateTime.of(year, month, day, hour, min, sec, nano).atZone(zone); in createZDT()
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneRules.java1091 …private Instant createInstant(int year, int month, int day, int hour, int min, ZoneOffset offset) { in createInstant() argument
1092 return LocalDateTime.of(year, month, day, hour, min).toInstant(offset); in createInstant()
1095 …private Instant createInstant(int year, int month, int day, int hour, int min, int sec, int nano, … in createInstant() argument
1096 return LocalDateTime.of(year, month, day, hour, min, sec, nano).toInstant(offset); in createInstant()

12