Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/libcore/icu/
DDateIntervalFormatTest.java32 private static final long HOUR = 60 * MINUTE; field in DateIntervalFormatTest
33 private static final long DAY = 24 * HOUR;
65 …assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY… in test_formatDateInterval()
66 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE)); in test_formatDateInterval()
68 …assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SH… in test_formatDateInterval()
69 …assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)… in test_formatDateInterval()
70 …y", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DA… in test_formatDateInterval()
80 …assertEquals("Mon", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY | … in test_formatDateInterval()
81 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval()
82 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java89 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIII()
118 assertEquals("Incorrect calendar constructed", 7, gc.get(Calendar.HOUR)); in test_ConstructorIIIIII()
158 gc1.get(Calendar.HOUR), ((gc2.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZone()
170 c1.set(Calendar.HOUR, 15); in test_ConstructorLjava_util_TimeZone()
195 gc1.get(Calendar.HOUR), ((gc3.get(Calendar.HOUR) + 1) % 12)); in test_ConstructorLjava_util_TimeZoneLjava_util_Locale()
237 gc1.add(Calendar.HOUR, 24); in test_addII()
326 .getActualMaximum(Calendar.HOUR)); in test_getActualMaximumI()
371 .getActualMinimum(Calendar.HOUR)); in test_getActualMinimumI()
390 .getGreatestMinimum(Calendar.HOUR)); in test_getGreatestMinimumI()
432 .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.java112 calendar.add(Calendar.HOUR, 24); in testAdd24HoursOverDstForwardAdds24Hours()
248 cal.clear(Calendar.HOUR); in checkClear()
/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/ojluni/src/main/java/java/util/
DGregorianCalendar.java713 this.internalSet(HOUR, hourOfDay - 12); in GregorianCalendar()
717 this.internalSet(HOUR, hourOfDay); in GregorianCalendar()
1015 case HOUR:
1055 if (field >= HOUR) {
1198 case HOUR: in roll()
1218 if (field == HOUR) { in roll()
1226 if (field == HOUR) { in roll()
1230 internalSet(HOUR, hourOfDay % 12); in roll()
2458 internalSet(HOUR, hours % 12); in computeFields()
2467 internalSet(HOUR, 0); in computeFields()
[all …]
DJapaneseImperialCalendar.java449 case HOUR: in add()
489 if (field >= HOUR) { in add()
586 case HOUR: in roll()
607 if (field == HOUR) { in roll()
615 if (field == HOUR) { in roll()
619 internalSet(HOUR, hourOfDay % 12); in roll()
1670 internalSet(HOUR, hours % 12); in computeFields()
1679 internalSet(HOUR, 0); in computeFields()
1896 timeOfDay += internalGet(HOUR); in computeTime()
DCalendar.java509 public final static int HOUR = 10; field in Calendar
1011 final static int HOUR_MASK = (1 << HOUR);
2535 int hourStamp = aggregateStamp(stamp[HOUR], stamp[AM_PM]); in selectFields()
2540 bestStamp = Math.max(stamp[HOUR], stamp[AM_PM]); in selectFields()
DFormatter.java3960 case DateTime.HOUR: { // 'l' (1 - 12) -- like I
3962 if (c == DateTime.HOUR_0 || c == DateTime.HOUR)
4190 case DateTime.HOUR: { // 'l' (1 - 12) -- like I
4713 static final char HOUR = 'l'; // (1 - 12) -- like I
4761 case HOUR:
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java639 return DateTimePatternGenerator.HOUR; in getIcuFieldNumber()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1150 Calendar.HOUR,
1151 Calendar.HOUR,
1413 zeroPaddingNumber(calendar.getLeastMaximum(Calendar.HOUR) + 1, in subFormat()
2545 if (value == calendar.getLeastMaximum(Calendar.HOUR) + 1) { in subParse()
2548 calb.set(Calendar.HOUR, value); in subParse()
DDateFormat.java1037 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()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCalendar.annotated.java194 public static final int HOUR = 10; // 0xa field in Calendar
/libcore/ojluni/annotations/hiddenapi/java/util/
DCalendar.java463 public static final int HOUR = 10; // 0xa field in Calendar
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java475 assertEquals(11, calendar.get(Calendar.HOUR)); in testLenientParsingForZ()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java264 now.set(Calendar.HOUR, Integer.parseInt(time.substring(0, c))); in parseLine()