Home
last modified time | relevance | path

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

12345

/external/icu/icu4c/source/test/testdata/
Dcalendar.txt29 "ERA=1,YEAR=1,MONTH=JUNE,DATE=4", // tw
30 "ERA=1,YEAR=1912,MONTH=,DATE=" // greg
34 "ERA=1,YEAR=3,MONTH=FEBRUARY,DATE=12", // tw
35 "ERA=1,YEAR=1914,MONTH=,DATE=" // greg
39 "ERA=1,YEAR=96,MONTH=FEBRUARY,DATE=12", // tw
40 "ERA=1,YEAR=2007,MONTH=,DATE=" // greg
46 "ERA=0,YEAR=2,MONTH=JANUARY,DATE=24", // tw
47 "ERA=1,YEAR=1910,MONTH=JANUARY,DATE=24", // greg
54 "EXTENDED_YEAR=4601,MONTH=6,DATE=28,IS_LEAP_MONTH=0", // ch
55 "YEAR=1964,MONTH=8,DATE=4", // greg
[all …]
Dformat.txt37 "ERA=1,YEAR=2007,MONTH=AUGUST,DATE=8,HOUR_OF_DAY=18,MINUTE=54,SECOND=0",
44 "ERA=1,YEAR=98,MONTH=0,DATE=24",
52 "ERA=0,YEAR=2,MONTH=0,DATE=24",
94 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
102 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
117 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
125 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
149 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
157 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
172 "ERA=1,YEAR=2012,MONTH=OCTOBER,DATE=8,HOUR_OF_DAY=23,MINUTE=59,SECOND=0",
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DDangiTest.java84 int m = cal.get(Calendar.MONTH) + 1; // 0-based -> 1-based in TestMapping()
111 cal.set(Calendar.MONTH, cmonth - 1); in TestMapping()
140 cal.get(Calendar.MONTH) + in TestZeroDOM()
194 Calendar.MONTH, 3, in TestResolution()
199 Calendar.MONTH, 1, // Should ignore in TestResolution()
207 Calendar.MONTH, 3, in TestResolution()
229 int month = cal.get(Calendar.MONTH); in TestResolution()
239 cal.set(Calendar.MONTH, expMonth); in TestResolution()
273 cal.set(MONTH, m1); in TestOutOfRange()
276 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DHebrewTest.java53 { 5759, HESHVAN, 2, MONTH, 1, 5759, KISLEV, 2 }, // non-leap years in TestRoll()
54 { 5759, SHEVAT, 2, MONTH, 1, 5759, ADAR, 2 }, in TestRoll()
55 { 5759, SHEVAT, 2, MONTH, 2, 5759, NISAN, 2 }, in TestRoll()
56 { 5759, SHEVAT, 2, MONTH, 12, 5759, SHEVAT, 2 }, in TestRoll()
57 { 5759, AV, 1, MONTH, 12, 5759, AV, 1 }, // Alan in TestRoll()
59 { 5757, HESHVAN, 2, MONTH, 1, 5757, KISLEV, 2 }, // leap years in TestRoll()
60 { 5757, SHEVAT, 2, MONTH, 1, 5757, ADAR_1, 2 }, in TestRoll()
61 { 5757, SHEVAT, 2, MONTH, 2, 5757, ADAR, 2 }, in TestRoll()
62 { 5757, SHEVAT, 2, MONTH, 3, 5757, NISAN, 2 }, in TestRoll()
63 { 5757, SHEVAT, 2, MONTH, 12, 5757, TEVET, 2 }, in TestRoll()
[all …]
DChineseTest.java104 int m = cal.get(Calendar.MONTH)+1; // 0-based -> 1-based in TestMapping()
132 cal.set(Calendar.MONTH, cmonth-1); in TestMapping()
162 cal.get(Calendar.MONTH) + in TestZeroDOM()
317 Calendar.MONTH, 3, in TestResolution()
322 Calendar.MONTH, 1, // Should ignore in TestResolution()
342 Calendar.MONTH, 3, in TestResolution()
364 int month = cal.get(Calendar.MONTH); in TestResolution()
374 cal.set(Calendar.MONTH, expMonth); in TestResolution()
408 cal.set(MONTH, m1); in TestOutOfRange()
411 int m = cal.get(MONTH); in TestOutOfRange()
[all …]
DCopticTest.java152 int month = cal.get(Calendar.MONTH); in TestCopticToJD()
193 cal.get(MONTH) + "/" + in TestBasic()
199 cal.get(MONTH) + "/" + in TestBasic()
227 int maxMonth = copticCal.getActualMaximum(Calendar.MONTH); in Test6379()
230 copticCal.set(Calendar.MONTH, month); in Test6379()
339 gCal.add(GregorianCalendar.MONTH,2); in TestYear()
348 cCal.add(CopticCalendar.MONTH,2); in TestYear()
357 eCal.add(EthiopicCalendar.MONTH,2); // add 2 months in TestYear()
395 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +1, 1725, 0, 1 ), in TestAddSet()
396 new TestAddSetItem( 1724, 12, 1, Calendar.MONTH, +9, 1725, 8, 1 ), in TestAddSet()
[all …]
DEthiopicTest.java262 cal.get(MONTH) + "/" + in TestBasic()
268 cal.get(MONTH) + "/" + in TestBasic()
278 cal.get(Calendar.MONTH) == 8 && in TestJD()
383 cal.add(Calendar.MONTH, 1); in TestCoverage()
453 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +1, 2001, 0, 1 ), in TestAddSet()
454 new TestAddSetItem( 2000, 12, 1, Calendar.MONTH, +9, 2001, 8, 1 ), in TestAddSet()
455 … new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +1, 2000, 0, 2 ), // 1999 is a leap year in TestAddSet()
456 new TestAddSetItem( 1999, 12, 2, Calendar.MONTH, +9, 2000, 8, 2 ), in TestAddSet()
457 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -1, 2000, 12, 1 ), in TestAddSet()
458 new TestAddSetItem( 2001, 0, 1, Calendar.MONTH, -6, 2000, 7, 1 ), in TestAddSet()
[all …]
DIslamicTest.java54 { 0001, QIDAH, 2, MONTH, 1, 0001, HIJJAH, 2 }, // non-leap years in TestRoll()
55 { 0001, QIDAH, 2, MONTH, 2, 0001, MUHARRAM, 2 }, in TestRoll()
56 { 0001, QIDAH, 2, MONTH, -1, 0001, SHAWWAL, 2 }, in TestRoll()
57 { 0001, MUHARRAM, 2, MONTH, 12, 0001, MUHARRAM, 2 }, in TestRoll()
58 { 0001, MUHARRAM, 2, MONTH, 13, 0001, SAFAR, 2 }, in TestRoll()
64 { 0001, MUHARRAM, 30, MONTH, 1, 0001, SAFAR, 29 }, in TestRoll()
137 cal.get(MONTH) + "/" + in TestBasic()
143 cal.get(MONTH) + "/" + in TestBasic()
173 cal.set(IslamicCalendar.MONTH, IslamicCalendar.DHU_AL_HIJJAH); in Test7427()
174 cal.add(IslamicCalendar.MONTH,1); in Test7427()
[all …]
DIndianTest.java113 cal.get(MONTH) + "/" + in TestBasic()
119 cal.get(MONTH) + "/" + in TestBasic()
217 gCal.add(GregorianCalendar.MONTH,2); in TestYear()
226 iCal.add(IndianCalendar.MONTH,2); in TestYear()
263 cal.add(Calendar.MONTH, 1); in TestYearEdge()
267 cal.add(Calendar.MONTH, 1); in TestYearEdge()
271 cal.add(Calendar.MONTH, 1); in TestYearEdge()
DCompatibilityTest.java98 int y = cal.get(Calendar.YEAR), mon = cal.get(Calendar.MONTH)+1-Calendar.JANUARY, in TestGregorianChangeover()
201 month2 = cal.get(Calendar.MONTH); in TestMapping()
222 month2 = cal.get(Calendar.MONTH); in TestMapping()
256 int month2 = cal.get(Calendar.MONTH); in auxMapping()
301 cal.roll(Calendar.MONTH, (int)(1 + Calendar.DECEMBER - cal.get(Calendar.MONTH))); in TestGenericAPI()
373 case Calendar.YEAR: case Calendar.MONTH: case Calendar.DATE: in TestGenericAPI()
456 gc.get(Calendar.MONTH) != month || in TestRog()
522 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
530 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
537 c.set(Calendar.MONTH, Calendar.JUNE); in TestDisambiguation765()
[all …]
DCalendarTest.java40 public final static int MONTH = Calendar.MONTH; field in CalendarTest
166 cal.set(Calendar.MONTH, test[1]); in doRollAdd()
179 if (y != test[5] || cal.get(MONTH) != test[6] in doRollAdd()
231 Calendar.ERA, Calendar.YEAR, Calendar.MONTH, in doLimitsTest()
360 int maxM = cal.getMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest()
361 int lmaxM = cal.getLeastMaximum(Calendar.MONTH) + 1; in doTheoreticalLimitsTest()
429 (cal.get(Calendar.MONTH)+1) + in ymdToString()
434 cal.get(MONTH), cal.get(DATE)) + in ymdToString()
DCalendarRegression.java156 calendar.set(Calendar.MONTH,3); in Test4040996()
160 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996()
170 logln("MONTH: " + calendar.get(Calendar.MONTH)); in Test4040996()
175 if (calendar.get(Calendar.MONTH) != 3 || in Test4040996()
373 cal.set(Calendar.MONTH, Calendar.NOVEMBER); // change a field in Test4071385()
384 int testmonth = foo1.get(Calendar.MONTH); in Test4073929()
514 cal1.get(Calendar.MONTH), in Test4096231()
527 cal1.get(Calendar.MONTH), in Test4096231()
549 log((m1=gc.get(Calendar.MONTH)+1)+"/"+ in Test4096539()
553 gc.add(Calendar.MONTH, 1); in Test4096539()
[all …]
DChineseTestCase.java38 set(Calendar.MONTH, month - 1); in ChineseTestCase()
50 "/" + (get(Calendar.MONTH)+1) + in toString()
/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.java364 this.set(MONTH, month); in HebrewCalendar()
405 this.set(MONTH, month); in HebrewCalendar()
449 case MONTH: in add()
456 int month = get(MONTH); in add()
488 set(MONTH, month); in add()
535 case MONTH: in roll()
537 int month = get(MONTH); in roll()
554 set(MONTH, (newMonth + 13) % 13); in roll()
760 … if (field == MONTH && !isLeapYear(handleGetExtendedYear()) && internalGet(MONTH) == ADAR_1) { in validateField()
820 internalSet(MONTH, month); in handleComputeFields()
DChineseCalendar.java212 this.set(MONTH, month); in ChineseCalendar()
270 this.set(MONTH, month); in ChineseCalendar()
561 case MONTH: in add()
581 case MONTH: in roll()
593 int m = get(MONTH); // 0-based month in roll()
888 internalSet(MONTH, month-1); // Convert from 1-based to 0-based in computeChineseFields()
989 int saveMonth = internalGet(MONTH); in handleComputeMonthStart()
1001 if (month != internalGet(MONTH) || in handleComputeMonthStart()
1007 internalSet(MONTH, saveMonth); in handleComputeMonthStart()
DTimeUnit.java38 return new TimeUnit[] { SECOND, MINUTE, HOUR, DAY, WEEK, MONTH, YEAR }; in values()
60 return MONTH; in readResolve()
DGregorianCalendar.java410 set(MONTH, month); in GregorianCalendar()
433 set(MONTH, month); in GregorianCalendar()
460 set(MONTH, month); in GregorianCalendar()
573 if (internalGet(MONTH) == Calendar.JANUARY) { in roll()
792 internalSet(MONTH, month); in handleComputeFields()
DPersianCalendar.java225 this.set(Calendar.MONTH, month); in PersianCalendar()
254 this.set(Calendar.MONTH, month); in PersianCalendar()
436 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()
72 Period p = Period.at(1, TimeUnit.YEAR).and(3, TimeUnit.MONTH) in testAnd()
75 assertTrue(null, p.isSet(TimeUnit.MONTH)); in testAnd()
76 assertEquals(null, 3f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
77 p = p.and(2, TimeUnit.MONTH); in testAnd()
78 assertEquals(null, 2f, p.getCount(TimeUnit.MONTH), .1f); in testAnd()
102 p = p.and(-1, TimeUnit.MONTH); in testInvalidCount()
DPeriodBuilderFactoryTest.java45 pbf.setAvailableUnitRange(MINUTE, MONTH); in testSetAvailableUnitRange()
50 …assertEquals(null, p.isSet(unit), unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.or… in testSetAvailableUnitRange()
56 if (unit.ordinal() >= MONTH.ordinal() && unit.ordinal() <= MINUTE.ordinal()) { in testSetAvailableUnitRange()
65 pbf.setAvailableUnitRange(MONTH, MINUTE); in testSetAvailableUnitRange()
74 pbf.setAvailableUnitRange(MONTH, MONTH); in testSetUnitIsAvailable()
80 pbf.setUnitIsAvailable(MONTH, false); in testSetUnitIsAvailable()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/duration/
DTimeUnitConstants.java18 public static final TimeUnit MONTH = TimeUnit.MONTH; field
DTimeUnit.java35 public static final TimeUnit MONTH = new TimeUnit("month", 1); field in TimeUnit
67 YEAR, MONTH, WEEK, DAY, HOUR, MINUTE, SECOND, MILLISECOND
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRelativeDateTimeFormatterTest.java356 {Direction.NEXT, AbsoluteUnit.MONTH, "next month"}, in TestRelativeDateWithoutQuantity()
370 {Direction.LAST, AbsoluteUnit.MONTH, "last month"}, in TestRelativeDateWithoutQuantity()
382 {Direction.THIS, AbsoluteUnit.MONTH, "this month"}, in TestRelativeDateWithoutQuantity()
394 {Direction.PLAIN, AbsoluteUnit.MONTH, "month"}, in TestRelativeDateWithoutQuantity()
419 {Direction.NEXT, AbsoluteUnit.MONTH, "Next month"}, in TestRelativeDateWithoutQuantityCaps()
434 {Direction.LAST, AbsoluteUnit.MONTH, "Last month"}, in TestRelativeDateWithoutQuantityCaps()
446 {Direction.THIS, AbsoluteUnit.MONTH, "This month"}, in TestRelativeDateWithoutQuantityCaps()
458 {Direction.PLAIN, AbsoluteUnit.MONTH, "Month"}, in TestRelativeDateWithoutQuantityCaps()
489 {Direction.NEXT, AbsoluteUnit.MONTH, "next mo."}, in TestRelativeDateWithoutQuantityShort()
505 {Direction.LAST, AbsoluteUnit.MONTH, "last mo."}, in TestRelativeDateWithoutQuantityShort()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalFormat.java626 } else if ( fromCalendar.get(Calendar.MONTH) != in getPatterns()
627 toCalendar.get(Calendar.MONTH) ) { in getPatterns()
628 field = Calendar.MONTH; in getPatterns()
682 } else if ( fromCalendar.get(Calendar.MONTH) != in format()
683 toCalendar.get(Calendar.MONTH) ) { in format()
684 field = Calendar.MONTH; in format()
1059 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.MONTH], ptn); in initializeIntervalPattern()
1102 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.MONTH], ptn); in initializeIntervalPattern()
1123 if ( !fieldExistsInSkeleton(Calendar.MONTH, dateSkeleton) ) { in initializeIntervalPattern()
1126 CALENDAR_FIELD_TO_PATTERN_LETTER[Calendar.MONTH] + skeleton; in initializeIntervalPattern()
[all …]

12345