Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java28 private static final long HOUR = 60 * MINUTE; field in DateIntervalFormatTest
29 private static final long DAY = 24 * HOUR;
61 …assertEquals("Monday", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY… in test_formatDateInterval()
62 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE)); in test_formatDateInterval()
64 …assertEquals("January 19, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SH… in test_formatDateInterval()
65 …assertEquals("January 19", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_NO_YEAR)… in test_formatDateInterval()
66 …y", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_NO_MONTH_DA… in test_formatDateInterval()
76 …assertEquals("Mon", formatDateRange(en_US, tz, fixedTime, fixedTime + HOUR, FORMAT_SHOW_WEEKDAY | … in test_formatDateInterval()
77 …9", formatDateRange(en_US, tz, timeWithCurrentYear, timeWithCurrentYear + HOUR, FORMAT_SHOW_DATE |… in test_formatDateInterval()
78 …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.java109 calendar.add(Calendar.HOUR, 24); in testAdd24HoursOverDstForwardAdds24Hours()
233 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.java707 this.internalSet(HOUR, hourOfDay - 12); in GregorianCalendar()
711 this.internalSet(HOUR, hourOfDay); in GregorianCalendar()
981 case HOUR:
1021 if (field >= HOUR) {
1161 case HOUR: in roll()
1181 if (field == HOUR) { in roll()
1189 if (field == HOUR) { in roll()
1193 internalSet(HOUR, hourOfDay % 12); in roll()
2387 internalSet(HOUR, hours % 12); in computeFields()
2396 internalSet(HOUR, 0); in computeFields()
[all …]
DCalendar.java511 public final static int HOUR = 10; field in Calendar
923 final static int HOUR_MASK = (1 << HOUR);
1813 int hourStamp = aggregateStamp(stamp[HOUR], stamp[AM_PM]); in selectFields()
1818 bestStamp = Math.max(stamp[HOUR], stamp[AM_PM]); in selectFields()
DFormatter.java3928 case DateTime.HOUR: { // 'l' (1 - 12) -- like I
3930 if (c == DateTime.HOUR_0 || c == DateTime.HOUR)
4436 static final char HOUR = 'l'; // (1 - 12) -- like I
4484 case HOUR:
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1030 Calendar.AM_PM, Calendar.HOUR, Calendar.HOUR, Calendar.ZONE_OFFSET,
1184 zeroPaddingNumber(calendar.getLeastMaximum(Calendar.HOUR)+1, in subFormat()
2011 if (value == calendar.getLeastMaximum(Calendar.HOUR)+1) in subParse()
2013 calb.set(Calendar.HOUR, value); in subParse()
DDateFormat.java1001 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/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java420 assertEquals(11, calendar.get(Calendar.HOUR)); in testLenientParsingForZ()
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
DFtpClient.java265 now.set(Calendar.HOUR, Integer.parseInt(time.substring(0, c))); in parseLine()