Home
last modified time | relevance | path

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

12345678

/external/icu/icu4c/source/test/testdata/
Dcalendar.txt31 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw
32 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg
36 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw
37 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg
41 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw
42 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg
48 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw
49 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg
56 "EXTENDED_YEAR=4601,MONTH=6,DATE=28,IS_LEAP_MONTH=0", // ch
57 "YEAR=1964,MONTH=8,DATE=4", // greg
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DDangiTest.java90 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping()
117 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping()
147 cal.get(Calendar.MONTH) + in TestZeroDOM()
203 Calendar.MONTH, 3, in TestResolution()
208 Calendar.MONTH, 1, // Should ignore in TestResolution()
216 Calendar.MONTH, 3, in TestResolution()
238 int month = cal.get(Calendar.MONTH); in TestResolution()
248 cal.set(Calendar.MONTH, expMonth); in TestResolution()
283 cal.set(MONTH, m1); in TestOutOfRange()
286 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DHebrewTest.java60 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll()
61 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll()
62 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll()
63 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll()
64 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll()
66 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll()
67 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll()
68 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll()
69 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll()
70 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll()
[all …]
DChineseTest.java110 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping()
138 cal.set(Calendar.MONTH, cmonth-1); in TestMapping()
169 cal.get(Calendar.MONTH) + in TestZeroDOM()
328 Calendar.MONTH, 3, in TestResolution()
333 Calendar.MONTH, 1, // Should ignore in TestResolution()
353 Calendar.MONTH, 3, in TestResolution()
375 int month = cal.get(Calendar.MONTH); in TestResolution()
385 cal.set(Calendar.MONTH, expMonth); in TestResolution()
420 cal.set(MONTH, m1); in TestOutOfRange()
423 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DCopticTest.java160 int month = cal.get(Calendar.MONTH); in TestCopticToJD()
203 cal.get(MONTH) + "/" + in TestBasic()
209 cal.get(MONTH) + "/" + in TestBasic()
239 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379()
242 copticCal.set(Calendar.MONTH, month); in Test6379()
353 gCal.add(GregorianCalendar.MONTH,2); in TestYear()
362 cCal.add(CopticCalendar.MONTH,2); in TestYear()
371 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear()
410 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet()
411 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet()
[all …]
DEthiopicTest.java272 cal.get(MONTH) + "/" + in TestBasic()
278 cal.get(MONTH) + "/" + in TestBasic()
289 cal.get(Calendar.MONTH) == 8 && in TestJD()
396 cal.add(Calendar.MONTH, 1); in TestCoverage()
467 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet()
468 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet()
469 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet()
470 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet()
471 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet()
472 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet()
[all …]
DIslamicTest.java62 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll()
63 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll()
64 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll()
65 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll()
66 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll()
72 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll()
147 cal.get(MONTH) + "/" + in TestBasic()
153 cal.get(MONTH) + "/" + in TestBasic()
185 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427()
186 cal.add(IslamicCalendar.MONTH,1); in Test7427()
[all …]
DCompatibilityTest.java105 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover()
209 month2 = cal.get(Calendar.MONTH); in TestMapping()
230 month2 = cal.get(Calendar.MONTH); in TestMapping()
264 int month2 = cal.get(Calendar.MONTH); in auxMapping()
310 cal.roll(Calendar.MONTH, 1 + Calendar.DECEMBER - cal.get(Calendar.MONTH)); in TestGenericAPI()
382 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI()
466 gc.get(Calendar.MONTH) != month || in TestRog()
536 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
544 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
551 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
[all …]
DCalendarTestFmwk.java45 public final static int MONTH = Calendar.MONTH; field in CalendarTestFmwk
171 cal.set(Calendar.MONTH, test[1]); in doRollAdd()
184 if (y != test[5] || cal.get(MONTH) != test[6] in doRollAdd()
236 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, in doLimitsTest()
365 int maxM = cal.getMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest()
366 int lmaxM = cal.getLeastMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest()
434 (cal.get(Calendar.MONTH)+1) + in ymdToString()
439 cal.get(MONTH), cal.get(DATE)) + in ymdToString()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDangiTest.java87 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping()
114 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping()
144 cal.get(Calendar.MONTH) + in TestZeroDOM()
200 Calendar.MONTH, 3, in TestResolution()
205 Calendar.MONTH, 1, // Should ignore in TestResolution()
213 Calendar.MONTH, 3, in TestResolution()
235 int month = cal.get(Calendar.MONTH); in TestResolution()
245 cal.set(Calendar.MONTH, expMonth); in TestResolution()
280 cal.set(MONTH, m1); in TestOutOfRange()
283 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DHebrewTest.java57 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll()
58 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll()
59 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll()
60 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll()
61 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll()
63 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll()
64 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll()
65 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll()
66 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll()
67 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll()
[all …]
DChineseTest.java107 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping()
135 cal.set(Calendar.MONTH, cmonth-1); in TestMapping()
166 cal.get(Calendar.MONTH) + in TestZeroDOM()
325 Calendar.MONTH, 3, in TestResolution()
330 Calendar.MONTH, 1, // Should ignore in TestResolution()
350 Calendar.MONTH, 3, in TestResolution()
372 int month = cal.get(Calendar.MONTH); in TestResolution()
382 cal.set(Calendar.MONTH, expMonth); in TestResolution()
417 cal.set(MONTH, m1); in TestOutOfRange()
420 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DCopticTest.java157 int month = cal.get(Calendar.MONTH); in TestCopticToJD()
200 cal.get(MONTH) + "/" + in TestBasic()
206 cal.get(MONTH) + "/" + in TestBasic()
236 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379()
239 copticCal.set(Calendar.MONTH, month); in Test6379()
350 gCal.add(GregorianCalendar.MONTH,2); in TestYear()
359 cCal.add(CopticCalendar.MONTH,2); in TestYear()
368 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear()
407 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet()
408 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet()
[all …]
DEthiopicTest.java269 cal.get(MONTH) + "/" + in TestBasic()
275 cal.get(MONTH) + "/" + in TestBasic()
286 cal.get(Calendar.MONTH) == 8 && in TestJD()
393 cal.add(Calendar.MONTH, 1); in TestCoverage()
464 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet()
465 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet()
466 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet()
467 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet()
468 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet()
469 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet()
[all …]
DIslamicTest.java59 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll()
60 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll()
61 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll()
62 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll()
63 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll()
69 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll()
144 cal.get(MONTH) + "/" + in TestBasic()
150 cal.get(MONTH) + "/" + in TestBasic()
182 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427()
183 cal.add(IslamicCalendar.MONTH,1); in Test7427()
[all …]
DCompatibilityTest.java102 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover()
206 month2 = cal.get(Calendar.MONTH); in TestMapping()
227 month2 = cal.get(Calendar.MONTH); in TestMapping()
261 int month2 = cal.get(Calendar.MONTH); in auxMapping()
307 cal.roll(Calendar.MONTH, 1 + Calendar.DECEMBER - cal.get(Calendar.MONTH)); in TestGenericAPI()
379 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI()
463 gc.get(Calendar.MONTH) != month || in TestRog()
533 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
541 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
548 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
[all …]
DIndianTest.java119 cal.get(MONTH) + "/" + in TestBasic()
125 cal.get(MONTH) + "/" + in TestBasic()
224 gCal.add(GregorianCalendar.MONTH,2); in TestYear()
233 iCal.add(IndianCalendar.MONTH,2); in TestYear()
272 cal.add(Calendar.MONTH, 1); in TestYearEdge()
276 cal.add(Calendar.MONTH, 1); in TestYearEdge()
280 cal.add(Calendar.MONTH, 1); in TestYearEdge()
/external/nist-sip/java/gov/nist/javax/sip/parser/
DHeaderParser.java92 retval.set(Calendar.MONTH, Calendar.JANUARY); in date()
94 retval.set(Calendar.MONTH, Calendar.FEBRUARY); in date()
96 retval.set(Calendar.MONTH, Calendar.MARCH); in date()
98 retval.set(Calendar.MONTH, Calendar.APRIL); in date()
100 retval.set(Calendar.MONTH, Calendar.MAY); in date()
102 retval.set(Calendar.MONTH, Calendar.JUNE); in date()
104 retval.set(Calendar.MONTH, Calendar.JULY); in date()
106 retval.set(Calendar.MONTH, Calendar.AUGUST); in date()
108 retval.set(Calendar.MONTH, Calendar.SEPTEMBER); in date()
110 retval.set(Calendar.MONTH, Calendar.OCTOBER); in date()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DHebrewCalendar.java346 this.set(MONTH, month); in HebrewCalendar()
385 this.set(MONTH, month); in HebrewCalendar()
428 case MONTH: in add()
435 int month = get(MONTH); in add()
467 set(MONTH, month); in add()
513 case MONTH: in roll()
515 int month = get(MONTH); in roll()
532 set(MONTH, (newMonth + 13) % 13); in roll()
737 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
796 internalSet(MONTH, month); in handleComputeFields()
DChineseCalendar.java210 this.set(MONTH, month); in ChineseCalendar()
266 this.set(MONTH, month); in ChineseCalendar()
546 case MONTH: in add()
565 case MONTH: in roll()
577 int m = get(MONTH); // 0-based month in roll()
871 internalSet(MONTH, month-1); // Convert from 1-based to 0-based in computeChineseFields()
971 int saveMonth = internalGet(MONTH); in handleComputeMonthStart()
983 if (month != internalGet(MONTH) || in handleComputeMonthStart()
989 internalSet(MONTH, saveMonth); in handleComputeMonthStart()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java366 this.set(MONTH, month); in HebrewCalendar()
407 this.set(MONTH, month); in HebrewCalendar()
451 case MONTH: in add()
458 int month = get(MONTH); in add()
490 set(MONTH, month); in add()
537 case MONTH: in roll()
539 int month = get(MONTH); in roll()
556 set(MONTH, (newMonth + 13) % 13); in roll()
762 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
822 internalSet(MONTH, month); in handleComputeFields()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
DPeriodTest.java29 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet()
75 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd()
78 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd()
79 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
80 p = p.and(2, TimeUnit.MONTH); in testAnd()
81 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
106 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
DPeriodBuilderFactoryTest.java46 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange()
51 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange()
57 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange()
66 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange()
76 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable()
82 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
DPeriodTest.java32 assertFalse(null, p.isSet(TimeUnit.MONTH)); in testIsSet()
78 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd()
81 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd()
82 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
83 p = p.and(2, TimeUnit.MONTH); in testAnd()
84 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
109 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
DPeriodBuilderFactoryTest.java49 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange()
54 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange()
60 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange()
69 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange()
79 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable()
85 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()

12345678