Home
last modified time | relevance | path

Searched refs:HOUR_OF_DAY (Results 1 – 17 of 17) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DGregorianCalendarTest.java227 .get(Calendar.HOUR_OF_DAY)); in test_addII()
231 .get(Calendar.HOUR_OF_DAY)); in test_addII()
235 .get(Calendar.HOUR_OF_DAY)); in test_addII()
239 .get(Calendar.HOUR_OF_DAY)); in test_addII()
241 gc1.add(Calendar.HOUR_OF_DAY, 24); in test_addII()
243 .get(Calendar.HOUR_OF_DAY)); in test_addII()
248 .get(Calendar.HOUR_OF_DAY)); in test_addII()
252 .get(Calendar.HOUR_OF_DAY)); in test_addII()
256 .get(Calendar.HOUR_OF_DAY)); in test_addII()
260 .get(Calendar.HOUR_OF_DAY)); in test_addII()
[all …]
DCalendarTest.java379 int hourOfDay = cal.get(Calendar.HOUR_OF_DAY); in test_setII()
385 assertEquals(hourOfDay + 12, cal.get(Calendar.HOUR_OF_DAY)); in test_setII()
472 cal.set(Calendar.HOUR_OF_DAY, 0); in test_getTimeInMillis()
579 fields[3] = Calendar.HOUR_OF_DAY; in test_clear()
DDateTest.java447 cal.set(Calendar.HOUR_OF_DAY, 0); in test_toString()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java156 assertEquals(hour, calendar.get(Calendar.HOUR_OF_DAY)); in testSetSelfConsistent()
203 assertEquals("hour", hour, calendar.get(Calendar.HOUR_OF_DAY)); in assertCalendarEquals()
232 cal.clear(Calendar.HOUR_OF_DAY); in checkClear()
240 assertFalse(cal.isSet(Calendar.HOUR_OF_DAY)); in checkClear()
243 assertEquals(expectedHourOfDay, cal.get(Calendar.HOUR_OF_DAY)); in checkClear()
249 assertTrue(cal.isSet(Calendar.HOUR_OF_DAY)); in checkClear()
253 cal.set(Calendar.HOUR_OF_DAY, 1); in checkClear()
313 calendar.set(Calendar.HOUR_OF_DAY, 1); in testSetHourOfDayInEuropeLondon()
314 assertEquals(1,calendar.get(Calendar.HOUR_OF_DAY)); in testSetHourOfDayInEuropeLondon()
DSimpleTimeZoneTest.java219 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit()
232 cal.add(Calendar.HOUR_OF_DAY, 1); in findDstEntryAndExit()
DOldGregorianCalendarTest.java64 assertEquals(17, g.get(Calendar.HOUR_OF_DAY)); in test_computeFields()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java928 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeInt()
942 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeInt()
987 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeIntCalendar()
999 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeIntCalendar()
1052 cal.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeString()
1072 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeString()
1112 cal1.set(Calendar.HOUR_OF_DAY, 12); in testGetTimeStringCalendar()
1124 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimeStringCalendar()
1171 cal2.set(Calendar.HOUR_OF_DAY, 14); in testGetTimestampInt()
1184 cal3.set(Calendar.HOUR_OF_DAY, 10); in testGetTimestampInt()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java121 Calendar.HOUR_OF_DAY, Field.HOUR_OF_DAY0.getCalendarField()); in test_getCalendarField()
141 Field.HOUR_OF_DAY0, Field.ofCalendarField(Calendar.HOUR_OF_DAY)); in test_ofCalendarFieldI()
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java311 assertEquals(11, calendar.get(Calendar.HOUR_OF_DAY)); // 18:00 GMT-7 in testDstZoneNameWithNonDstTimestamp()
319 assertEquals(9, calendar.get(Calendar.HOUR_OF_DAY)); // 17:00 GMT-8 in testNonDstZoneNameWithDstTimestamp()
328 assertEquals(19, calendar.get(Calendar.HOUR_OF_DAY)); // 9:00 GMT+10:30 in testDstZoneWithNonDstTimestampForNonHourDstZone()
336 assertEquals(20, calendar.get(Calendar.HOUR_OF_DAY)); // 9:00 GMT+11:00 in testNonDstZoneWithDstTimestampForNonHourDstZone()
/libcore/ojluni/src/main/java/java/util/
DCalendar.java520 public final static int HOUR_OF_DAY = 11; field in Calendar
924 final static int HOUR_OF_DAY_MASK = (1 << HOUR_OF_DAY);
1252 set(HOUR_OF_DAY, hourOfDay); in set()
1280 set(HOUR_OF_DAY, hourOfDay); in set()
1812 int hourOfDayStamp = stamp[HOUR_OF_DAY]; in selectFields()
DGregorianCalendar.java716 this.set(HOUR_OF_DAY, hourOfDay); in GregorianCalendar()
982 case HOUR_OF_DAY:
1033 timeOfDay += internalGet(HOUR_OF_DAY);
1162 case HOUR_OF_DAY: in roll()
1190 internalSet(HOUR_OF_DAY, hourOfDay); in roll()
1937 t += internalGet(HOUR_OF_DAY); in getYearOffsetInMillis()
2385 internalSet(HOUR_OF_DAY, hours); in computeFields()
2394 internalSet(HOUR_OF_DAY, 0); in computeFields()
2626 if (isFieldSet(fieldMask, HOUR_OF_DAY)) { in computeTime()
2627 timeOfDay += (long) internalGet(HOUR_OF_DAY); in computeTime()
DFormatter.java3927 case DateTime.HOUR_OF_DAY: // 'k' (0 - 23) -- like H
3929 int i = t.get(Calendar.HOUR_OF_DAY);
4435 static final char HOUR_OF_DAY = 'k'; // (0 - 23) -- like H
4483 case HOUR_OF_DAY:
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java99 return c.get(Calendar.HOUR_OF_DAY) == 0 && in isMidnight()
/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java40 c.set(Calendar.HOUR_OF_DAY, 3); in test_formatDateInterval()
338 c.set(Calendar.HOUR_OF_DAY, 0); in test10209343_when_this_year()
393 c.set(Calendar.HOUR_OF_DAY, 0); in test12004664()
/libcore/ojluni/src/main/java/java/text/
DSimpleDateFormat.java1026 Calendar.HOUR_OF_DAY, Calendar.HOUR_OF_DAY, Calendar.MINUTE,
1155 zeroPaddingNumber(calendar.getMaximum(Calendar.HOUR_OF_DAY)+1, in subFormat()
1961 if (value == calendar.getMaximum(Calendar.HOUR_OF_DAY)+1) in subParse()
1963 calb.set(Calendar.HOUR_OF_DAY, value); in subParse()
DDateFormat.java934 Field("hour of day", Calendar.HOUR_OF_DAY);
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java1144 calendar.set(Calendar.HOUR_OF_DAY, hour);
1154 hour = calendar.get(Calendar.HOUR_OF_DAY);