Home
last modified time | relevance | path

Searched refs:MONTH (Results 1 – 25 of 27) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DCalendarTest.java50 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII()
60 cal.set(Calendar.MONTH, Calendar.OCTOBER); in test_setII()
62 cal.set(Calendar.MONTH, Calendar.NOVEMBER); in test_setII()
64 assertTrue("Incorrect month: " + cal.get(Calendar.MONTH), cal in test_setII()
65 .get(Calendar.MONTH) == Calendar.NOVEMBER); in test_setII()
127 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII()
137 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_setII()
147 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII()
156 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII()
168 cal.set(Calendar.MONTH, Calendar.MARCH); in test_setII()
[all …]
DGregorianCalendarTest.java52 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIII()
70 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIII()
99 gc.get(Calendar.MONTH) == Calendar.OCTOBER); in test_ConstructorIIIIII()
152 c1.set(Calendar.MONTH, Calendar.JUNE); in test_ConstructorLjava_util_TimeZone()
195 gc1.add(Calendar.MONTH, 7); in test_addII()
198 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); in test_addII()
204 gc1.get(Calendar.MONTH) == Calendar.FEBRUARY); in test_addII()
262 .get(Calendar.MONTH) == Calendar.APRIL in test_addII()
306 .getActualMaximum(Calendar.MONTH) == Calendar.DECEMBER); in test_getActualMaximumI()
351 .getActualMinimum(Calendar.MONTH) == Calendar.JANUARY); in test_getActualMinimumI()
[all …]
DDateTest.java305 assertEquals("Parsed incorrect month", 9, cal.get(Calendar.MONTH)); in test_parseLjava_lang_String()
444 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_toString()
/libcore/luni/src/test/java/libcore/icu/
DDateIntervalFormatTest.java28 private static final long MONTH = 31 * DAY; field in DateIntervalFormatTest
29 private static final long YEAR = 12 * MONTH;
36 c.set(Calendar.MONTH, Calendar.JANUARY); in test_formatDateInterval()
80 …/2009 – 4/22/2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR … in test_formatDateInterval()
85 …2009 - 22.04.2009", formatDateRange(de_DE, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_YEAR … in test_formatDateInterval()
90 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_US, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval()
95 …assertEquals("19/1/2009–22/4/2009", formatDateRange(es_ES, tz, fixedTime, fixedTime + 3 * MONTH, F… in test_formatDateInterval()
105 …ls("January 19 – April 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, 0)); in test_formatDateInterval()
106 …19 – Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_DATE … in test_formatDateInterval()
107 …Wed, Apr 22, 2009", formatDateRange(en_US, tz, fixedTime, fixedTime + 3 * MONTH, FORMAT_SHOW_WEEKD… in test_formatDateInterval()
[all …]
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java386 if (field == YEAR || field == MONTH) { in add()
388 if (field == MONTH) { in add()
389 int month = fields[MONTH] + value; in add()
396 set(MONTH, month % 12); in add()
399 int days = daysInMonth(isLeapYear(fields[YEAR]), fields[MONTH]); in add()
553 fields[MONTH] = month; in fullFieldsCalc()
656 if (isSet[MONTH] && (fields[MONTH] < 0 || fields[MONTH] > 11)) { in computeTime()
694 boolean useMonth = (isSet[DATE] || isSet[MONTH] || weekMonthSet) in computeTime()
710 useMonth = isSet[DATE] && isSet[MONTH]; in computeTime()
715 int month = fields[MONTH]; in computeTime()
[all …]
DCalendar.java496 public static final int MONTH = 2; field in Calendar
1125 if (field > MONTH && field < AM_PM) { in set()
1143 set(MONTH, month); in set()
1312 case MONTH: in getDisplayNameArray()
DDate.java291 return new GregorianCalendar(milliseconds).get(Calendar.MONTH); in getMonth()
619 cal.set(Calendar.MONTH, month); in setMonth()
709 result.append(localeData.shortMonthNames[cal.get(Calendar.MONTH)]); in toString()
DSimpleTimeZone.java855 cal.set(Calendar.MONTH, endMonth); in writeObject()
863 cal.set(Calendar.MONTH, startMonth); in writeObject()
DFormatter.java1845 result.append(localeData.longMonthNames[calendar.get(Calendar.MONTH)]); in appendT()
1848 result.append(localeData.shortMonthNames[calendar.get(Calendar.MONTH)]); in appendT()
1938 appendLocalized(result, calendar.get(Calendar.MONTH) + 1, 2); in appendT()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DFieldPositionTest.java41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH); in test_ConstructorLjava_text_Format$Field()
43 DateFormat.Field.MONTH, fpos.getFieldAttribute()); in test_ConstructorLjava_text_Format$Field()
53 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH, in test_ConstructorLjava_text_Format$FieldI()
56 DateFormat.Field.MONTH, fpos.getFieldAttribute()); in test_ConstructorLjava_text_Format$FieldI()
DSupport_SimpleDateFormat.java77 t_FormatWithField(2, format, date, null, Field.MONTH, 19, 20); in t_format_with_FieldPosition()
108 t_FormatWithField(26, format, date, null, Field.MONTH, 0, 0); in t_format_with_FieldPosition()
162 v.add(new FieldContainer(4, 6, Field.MONTH)); in getDateVector1()
176 v.add(new FieldContainer(8, 17, Field.MONTH)); in getDateVector2()
213 v.add(new FieldContainer(19, 20, Field.MONTH)); in getDateVector4()
214 v.add(new FieldContainer(21, 23, Field.MONTH)); in getDateVector4()
215 v.add(new FieldContainer(24, 27, Field.MONTH)); in getDateVector4()
216 v.add(new FieldContainer(28, 37, Field.MONTH)); in getDateVector4()
DSupport_MessageFormat.java86 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
/libcore/luni/src/main/java/libcore/icu/
DDateIntervalFormat.java210 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || in fallOnDifferentDates()
215 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth()
/libcore/support/src/test/java/tests/support/
DSupport_TimeZone.java56 int month = cal.get(Calendar.MONTH); in inDaylightTime()
DSupport_MessageFormat.java88 v.add(new FieldContainer(3, 6, DateFormat.Field.MONTH)); in getMessageVector1()
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
DASN1Time.java46 c.set(Calendar.MONTH, in.times[1]-1); in getDecodedObject()
/libcore/luni/src/test/java/libcore/java/util/
DCalendarTest.java154 assertEquals(month, calendar.get(Calendar.MONTH)); in testSetSelfConsistent()
201 assertEquals(month, calendar.get(Calendar.MONTH)); in assertCalendarEquals()
216 cal.set(Calendar.MONTH, Calendar.JANUARY); in test_clear_45877()
DOldGregorianCalendarTest.java62 assertEquals(Calendar.SEPTEMBER, g.get(Calendar.MONTH)); in test_computeFields()
/libcore/luni/src/test/java/libcore/java/sql/
DOldResultSetGetterTests.java940 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeInt()
997 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeIntCalendar()
1070 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeString()
1122 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimeStringCalendar()
1169 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampInt()
1182 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampInt()
1226 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampIntCalendar()
1239 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampIntCalendar()
1289 cal2.set(Calendar.MONTH, Calendar.OCTOBER); in testGetTimestampString()
1302 cal3.set(Calendar.MONTH, Calendar.SEPTEMBER); in testGetTimestampString()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DSimpleDateFormatTest.java69 … assertEquals(Calendar.JUNE, parseDate(en, "yyyy-MMMM-dd", "1980-June-12").get(Calendar.MONTH)); in testStandAloneNames()
70 … assertEquals(Calendar.JUNE, parseDate(en, "yyyy-LLLL-dd", "1980-June-12").get(Calendar.MONTH)); in testStandAloneNames()
71 … assertEquals(Calendar.JUNE, parseDate(pl, "yyyy-MMMM-dd", "1980-czerwca-12").get(Calendar.MONTH)); in testStandAloneNames()
72 …assertEquals(Calendar.JUNE, parseDate(pl, "yyyy-LLLL-dd", "1980-czerwiec-12").get(Calendar.MONTH)); in testStandAloneNames()
/libcore/luni/src/main/java/java/text/
DDateFormat.java709 public static final Field MONTH = new Field("month", Calendar.MONTH); field in DateFormat.Field
DSimpleDateFormat.java597 dateFormatField = Field.MONTH; in append()
601 dateFormatField = Field.MONTH; in append()
711 int month = calendar.get(Calendar.MONTH); in appendMonth()
995 return parseNumber(absolute, string, offset, Calendar.MONTH, -1); in parseMonth()
1000 Calendar.MONTH); in parseMonth()
1004 Calendar.MONTH); in parseMonth()
/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java297 modDate = (cal.get(Calendar.MONTH) + 1 << 5) | modDate; in setTime()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java812 calendar.set(Calendar.MONTH, month);
821 month = calendar.get(Calendar.MONTH);
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStore2Test.java682 int monthExpected = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate()
689 int monthActual1 = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate()
703 int monthActual2 = Calendar.getInstance().get(Calendar.MONTH); in test_getCreationDate()

12