Home
last modified time | relevance | path

Searched refs:HOUR (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java26 private static final long HOUR = 60 * MINUTE; field in DateIntervalFormatTest
27 private static final long DAY = 24 * HOUR;
59 …assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY… in test_formatDateInterval()
60 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE)); in test_formatDateInterval()
62 …assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SH… in test_formatDateInterval()
63 …assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)… in test_formatDateInterval()
64 …y", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DA… in test_formatDateInterval()
74 …assertEquals("Mon", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY | … in test_formatDateInterval()
75 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval()
76 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval()
[all …]
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java419 case HOUR: in add()
545 fields[HOUR] = fields[HOUR_OF_DAY] % 12; in fullFieldsCalc()
613 } else if (isSet[HOUR] && (fields[HOUR] < 0 || fields[HOUR] > 11)) { in computeTime()
645 if (isSet[HOUR] && (fields[HOUR] < 0 || fields[HOUR] > 11)) { in computeTime()
663 if (isSet[HOUR_OF_DAY] && lastTimeFieldSet != HOUR) { in computeTime()
665 } else if (isSet[HOUR]) { in computeTime()
666 hour = (fields[AM_PM] * 12) + fields[HOUR]; in computeTime()
1225 case HOUR: in roll()
1234 lastTimeFieldSet = HOUR; in roll()
DCalendar.java611 public static final int HOUR = 10; field in Calendar
1128 if (field == HOUR || field == HOUR_OF_DAY) { in set()
1132 lastTimeFieldSet = HOUR; in set()
DFormatter.java1871 appendLocalized(result, to12Hour(calendar.get(Calendar.HOUR)), 2); in appendT()
1934 appendLocalized(result, to12Hour(calendar.get(Calendar.HOUR)), 0); in appendT()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java73 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII()
102 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIIII()
142 gc1.get(Calendar.HOUR), ((gc2.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZone()
154 c1.set(Calendar.HOUR, 15); in test_ConstructorLjava_util_TimeZone()
179 gc1.get(Calendar.HOUR), ((gc3.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
221 gc1.add(Calendar.HOUR, 24); in test_addII()
310 .getActualMaximum(Calendar.HOUR)); in test_getActualMaximumI()
355 .getActualMinimum(Calendar.HOUR)); in test_getActualMinimumI()
374 .getGreatestMinimum(Calendar.HOUR)); in test_getGreatestMinimumI()
416 .getLeastMaximum(Calendar.HOUR)); in test_getLeastMaximumI()
[all …]
DCalendarTest.java371 int hour = cal.get(Calendar.HOUR); in test_setII()
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/luni/src/test/java/libcore/java/util/
DOldGregorianCalendarTest.java38 assertTrue(gc2.get(Calendar.HOUR) == ((gc1.get(Calendar.HOUR) + 1) % 12)); in testGetHour()
DCalendarTest.java109 calendar.add(Calendar.HOUR, 24); in testAdd24HoursOverDstForwardAdds24Hours()
219 cal.clear(Calendar.HOUR); in test_clear_45877()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java116 Calendar.HOUR, Field.HOUR0.getCalendarField()); in test_getCalendarField()
138 Field.HOUR0, Field.ofCalendarField(Calendar.HOUR)); in test_ofCalendarFieldI()
/libcore/luni/src/main/java/java/text/
DSimpleDateFormat.java659 hour = calendar.get(Calendar.HOUR); in append()
664 field = Calendar.HOUR; in append()
939 calendar.set(Calendar.HOUR, hour); in parse()
942 field = Calendar.HOUR; in parse()
DDateFormat.java777 public static final Field HOUR0 = new Field("hour", Calendar.HOUR);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java684 int hourExpected = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate()
691 int hourActual1 = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate()
705 int hourActual2 = Calendar.getInstance().get(Calendar.HOUR); in test_getCreationDate()