Home
last modified time | relevance | path

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

123456789

/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/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 …]
/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 …]
/external/libtextclassifier/native/annotator/datetime/
Dregex-parser_test.cc91 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
101 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
108 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
115 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
125 .Add(DatetimeComponent::ComponentType::MONTH, 3) in TEST_F()
136 .Add(DatetimeComponent::ComponentType::MONTH, 12) in TEST_F()
146 .Add(DatetimeComponent::ComponentType::MONTH, 6) in TEST_F()
157 .Add(DatetimeComponent::ComponentType::MONTH, 3) in TEST_F()
165 .Add(DatetimeComponent::ComponentType::MONTH, 3) in TEST_F()
176 .Add(DatetimeComponent::ComponentType::MONTH, 6) in TEST_F()
[all …]
Dgrammar-parser_test.cc76 .Add(DatetimeComponent::ComponentType::MONTH, 2) in TEST_F()
87 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
95 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
105 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
112 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
119 .Add(DatetimeComponent::ComponentType::MONTH, 1) in TEST_F()
129 .Add(DatetimeComponent::ComponentType::MONTH, 3) in TEST_F()
140 .Add(DatetimeComponent::ComponentType::MONTH, 12) in TEST_F()
150 .Add(DatetimeComponent::ComponentType::MONTH, 6) in TEST_F()
162 .Add(DatetimeComponent::ComponentType::MONTH, 6) in TEST_F()
[all …]
/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/icu4j/main/classes/core/src/com/ibm/icu/util/
DHebrewCalendar.java366 this.set(MONTH, month); in HebrewCalendar()
407 this.set(MONTH, month); in HebrewCalendar()
452 case MONTH: in add()
459 int month = get(MONTH); in add()
491 set(MONTH, month); in add()
539 case MONTH: in roll()
541 int month = get(MONTH); in roll()
558 set(MONTH, (newMonth + 13) % 13); in roll()
769 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
830 internalSet(MONTH, month); in handleComputeFields()
/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()
429 case MONTH: in add()
436 int month = get(MONTH); in add()
468 set(MONTH, month); in add()
515 case MONTH: in roll()
517 int month = get(MONTH); in roll()
534 set(MONTH, (newMonth + 13) % 13); in roll()
744 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
804 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/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/jdk/
DDateDeserializationTest.java162 assertEquals(Calendar.DECEMBER, c.get(Calendar.MONTH)); in testDateUtilISO8601()
170 assertEquals(Calendar.DECEMBER, c.get(Calendar.MONTH)); in testDateUtilISO8601()
178 assertEquals(Calendar.DECEMBER, c.get(Calendar.MONTH)); in testDateUtilISO8601()
186 assertEquals(Calendar.DECEMBER, c.get(Calendar.MONTH)); in testDateUtilISO8601()
193 assertEquals(Calendar.NOVEMBER, c.get(Calendar.MONTH)); in testDateUtilISO8601()
208 assertEquals(Calendar.OCTOBER, c.get(Calendar.MONTH)); in testISO8601PartialMilliseconds()
216 assertEquals(Calendar.OCTOBER, c.get(Calendar.MONTH)); in testISO8601PartialMilliseconds()
227 assertEquals(Calendar.JULY, c.get(Calendar.MONTH)); in testISO8601PartialMilliseconds()
239 assertEquals(Calendar.JULY, c.get(Calendar.MONTH)); in testISO8601PartialMilliseconds()
251 assertEquals(Calendar.JULY, c.get(Calendar.MONTH)); in testISO8601PartialMilliseconds()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/
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()
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()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/
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()
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()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowDateFormatTest.java31 cal.set(Calendar.MONTH, Calendar.JANUARY); in getDateFormat_returnsADateFormat_January()
42 cal.set(Calendar.MONTH, Calendar.DECEMBER); in getDateFormat_returnsADateFormat_December()
53 cal.set(Calendar.MONTH, Calendar.JANUARY); in getLongDateFormat_returnsADateFormat_January()
64 cal.set(Calendar.MONTH, Calendar.DECEMBER); in getLongDateFormat_returnsADateFormat_December()

123456789