Home
last modified time | relevance | path

Searched refs:UCAL_MONTH (Results 1 – 25 of 37) sorted by relevance

12

/external/icu4c/samples/datecal/
Dccal.c27 ucal_set(cal, UCAL_MONTH, UCAL_FEBRUARY); /* FEBRUARY */ in c_main()
39 ucal_get(cal, UCAL_MONTH, &status) + 1, in c_main()
40 ucal_get(cal, UCAL_MONTH, &status), in c_main()
Dcal.cpp37 gc->get(UCAL_MONTH, status) + 1, in cpp_main()
38 gc->get(UCAL_MONTH, status), in cpp_main()
/external/icu4c/i18n/
Dhebrwcal.cpp217 case UCAL_MONTH: in add()
224 int32_t month = get(UCAL_MONTH, status); in add()
256 set(UCAL_MONTH, month); in add()
314 case UCAL_MONTH: in roll()
316 int32_t month = get(UCAL_MONTH, status); in roll()
333 set(UCAL_MONTH, (newMonth + 13) % 13); in roll()
599 internalSet(UCAL_MONTH, month); in handleComputeFields()
Dchnsecal.cpp304 int32_t saveMonth = internalGet(UCAL_MONTH); in handleComputeMonthStart()
319 if (month != internalGet(UCAL_MONTH) || in handleComputeMonthStart()
325 nonConstThis->internalSet(UCAL_MONTH, saveMonth); in handleComputeMonthStart()
338 case UCAL_MONTH: in add()
368 case UCAL_MONTH: in roll()
382 int32_t m = get(UCAL_MONTH, status); // 0-based month in roll()
648 internalSet(UCAL_MONTH, month-1); // Convert from 1-based to 0-based in computeChineseFields()
Djapancal.cpp412 …, kEraInfo[i].month-1, kEraInfo[i].day, kEraInfo[i].year, internalGet(UCAL_MONTH), internalGet(UC… in handleComputeFields()
419 diff = internalGet(UCAL_MONTH) - (kEraInfo[i].month - 1); in handleComputeFields()
421 …fprintf(stderr, "diff now %d (M) = %d - %d - 1\n", diff, internalGet(UCAL_MONTH), kEraInfo[i].mon… in handleComputeFields()
Dsmpdtfmt.cpp953 /*GyM*/ UCAL_ERA, UCAL_YEAR, UCAL_MONTH,
963 /*L*/ UCAL_MONTH,
964 /*Q*/ UCAL_MONTH,
965 /*q*/ UCAL_MONTH,
2254 if (!strcmp(cal.getType(),"hebrew") && field==UCAL_MONTH && bestMatch==13) { in matchString()
2565 cal.set(UCAL_MONTH,saveHebrewMonth); in subParse()
2567 cal.set(UCAL_MONTH,saveHebrewMonth-1); in subParse()
2615 cal.set(UCAL_MONTH, value); in subParse()
2617 cal.set(UCAL_MONTH, value - 1); in subParse()
2626 cal.set(UCAL_MONTH, value - 1); in subParse()
[all …]
Dgregocal.cpp229 set(UCAL_MONTH, month); in GregorianCalendar()
244 set(UCAL_MONTH, month); in GregorianCalendar()
262 set(UCAL_MONTH, month); in GregorianCalendar()
435 internalSet(UCAL_MONTH, month); in handleComputeFields()
634 int32_t monthLen = monthLength(internalGet(UCAL_MONTH)); in pinDayOfMonth()
660 date > monthLength(internalGet(UCAL_MONTH))) { in validateFields()
840 int32_t max = monthLength(internalGet(UCAL_MONTH)); in roll()
872 if (internalGet(UCAL_MONTH) == UCAL_JANUARY) { in roll()
Dcalendar.cpp1129 set(UCAL_MONTH, month); in set()
1139 set(UCAL_MONTH, month); in set()
1151 set(UCAL_MONTH, month); in set()
1290 (1 << UCAL_MONTH) | in computeFields()
1512 internalSet(UCAL_MONTH, getGregorianMonth()); in handleComputeFields()
1593 case UCAL_MONTH: in roll()
1599 int32_t max = getActualMaximum(UCAL_MONTH, status); in roll()
1600 int32_t mon = (internalGet(UCAL_MONTH) + amount) % (max+1); in roll()
1605 set(UCAL_MONTH, mon); in roll()
1650 pinField(UCAL_MONTH,status); in roll()
[all …]
Ddtitvfmt.cpp302 } else if ( fromCalendar.get(UCAL_MONTH, status) != in format()
303 toCalendar.get(UCAL_MONTH, status) ) { in format()
304 field = UCAL_MONTH; in format()
670 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder()); in initializePattern()
695 setPatternInfo(UCAL_MONTH, NULL, &pattern, fInfo->getDefaultOrder()); in initializePattern()
715 if ( !fieldExistsInSkeleton(UCAL_MONTH, dateSkeleton) ) { in initializePattern()
718 setFallbackPattern(UCAL_MONTH, skeleton, status); in initializePattern()
993 UBool extended = setIntervalPattern(UCAL_MONTH, skeleton, bestSkeleton, in setSeparateDateTimePtn()
Dcoptccal.cpp92 internalSet(UCAL_MONTH, month); in handleComputeFields()
Dethpccal.cpp123 internalSet(UCAL_MONTH, month); in handleComputeFields()
Dudat.cpp49 UCAL_MONTH, // UDAT_MONTH_FIELD = 2
74 UCAL_MONTH, // UDAT_STANDALONE_MONTH_FIELD = 26
75 UCAL_MONTH, // UDAT_QUARTER_FIELD = 27
76 UCAL_MONTH, // UDAT_STANDALONE_QUARTER_FIELD = 28
Dpersncal.cpp229 internalSet(UCAL_MONTH, month); in handleComputeFields()
/external/icu4c/test/cintltst/
Dccaltst.c752 if(ucal_get(cal, UCAL_YEAR, &status)!=1999 || ucal_get(cal, UCAL_MONTH, &status)!=2 || in TestFieldGetSet()
766 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
772 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
778 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
786 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
798 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
804 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
811 ucal_set(cal, UCAL_MONTH, UCAL_JUNE); in TestFieldGetSet()
835 ucal_set(cal, UCAL_MONTH, -3); in TestFieldGetSet()
845 ucal_set(cal, UCAL_MONTH, -3); in TestFieldGetSet()
[all …]
/external/icu4c/samples/cal/
Dcal.c261 ucal_set(c, UCAL_MONTH, month); in cal()
617 ucal_set(left_cal, UCAL_MONTH, i); in print_year()
619 ucal_set(right_cal, UCAL_MONTH, i + 1); in print_year()
646 left_month = ucal_get(left_cal, UCAL_MONTH, status); in print_year()
647 right_month = ucal_get(right_cal, UCAL_MONTH, status); in print_year()
689 left_month = ucal_get(left_cal, UCAL_MONTH, status); in print_year()
737 right_month = ucal_get(right_cal, UCAL_MONTH, status); in print_year()
/external/icu4c/test/intltest/
Dcalregts.cpp220 cal1->add(UCAL_MONTH,8,status); in Test9019()
236 log(UnicodeString("") + cal->get(UCAL_MONTH, status)) ; in printdate()
337 calendar->set(UCAL_MONTH,3); in test4040996()
341 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
351 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
356 if (calendar->get(UCAL_MONTH, status) != 3 || in test4040996()
638 cal->set(UCAL_MONTH, UCAL_NOVEMBER); // change a field in test4071385()
660 foo1->get(UCAL_MONTH, status), in test4073929()
669 foo1->get(UCAL_MONTH, status), in test4073929()
678 foo1->get(UCAL_MONTH, status), in test4073929()
[all …]
Dcaltest.cpp293 FIELD_NAME_STR( UCAL_MONTH ); in fieldName()
386 cal->roll(UCAL_MONTH, (int32_t)(1 + UCAL_DECEMBER - cal->get(UCAL_MONTH, status)), status); in TestGenericAPI()
452 case UCAL_YEAR: case UCAL_MONTH: case UCAL_DATE: in TestGenericAPI()
626 gc->get(UCAL_MONTH, status) != month || in TestRog()
737 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
743 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
749 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
757 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
765 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
771 c->set(UCAL_MONTH, UCAL_JUNE); in TestDisambiguation765()
[all …]
Dcallimts.cpp202 int32_t maxM = cal.getMaximum(UCAL_MONTH) + 1; in doTheoreticalLimitsTest()
203 int32_t lmaxM = cal.getLeastMaximum(UCAL_MONTH) + 1; in doTheoreticalLimitsTest()
278 UCAL_MONTH, in doLimitsTest()
449 + "/" + (cal.get(UCAL_MONTH, status) + 1) in ymdToString()
Dtzbdtest.cpp213 gc->get(UCAL_YEAR, status), gc->get(UCAL_MONTH, status), in verifyDST()
251 cal.get(UCAL_MONTH, status) == month && in verifyMapping()
256 (cal.get(UCAL_MONTH, status)+1) + "/" + in verifyMapping()
262 (cal.get(UCAL_MONTH, status)+1) + "/" + in verifyMapping()
Dastrotst.cpp274 cal->set(UCAL_MONTH, UCAL_APRIL); in TestSunriseTimes()
387 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
396 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
Dcalcasts.cpp63 checkField(cal, UCAL_MONTH, cases[i].month - 1,status); in doTestCases()
75 cal->set(UCAL_MONTH, cases[i].month - 1); in doTestCases()
Dcaltztst.cpp226 m = cal->get(UCAL_MONTH, status); in dateToFields()
Ddtifmtts.cpp1149 dtitvinf->setIntervalPattern(UDAT_YEAR_ABBR_MONTH_DAY, UCAL_MONTH, "yyyy MMM d - MMM y",ec); in expectUserDII()
1345 dtitvinf->setIntervalPattern(UDAT_YEAR_ABBR_MONTH_DAY, UCAL_MONTH, "yyyy MMM d - MMM y",ec); in stress()
Ddtfmtrtts.cpp425 || getField(d[0], UCAL_MONTH) == UCAL_APRIL in test()
426 || getField(d[0], UCAL_MONTH) == UCAL_OCTOBER)) in test()
Dincaltst.cpp209 …(cal.get(UCAL_MONTH, status)+1) + "/" + cal.get(UCAL_DATE, status) + " (" + UnicodeString(cal.get… in quasiGregorianTest()
213 (cal.get(UCAL_MONTH, status)+1) + "/" + cal.get(UCAL_DATE, status) + in quasiGregorianTest()
819 int32_t computedMonth = cal->get(UCAL_MONTH, status); in TestPersian()

12