Home
last modified time | relevance | path

Searched refs:cal2 (Results 1 – 6 of 6) sorted by relevance

/external/icu4c/test/intltest/
Dincaltst.cpp487 Calendar *cal2 = cal->clone(); in TestJapaneseFormat() local
514 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
516 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
559 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
562 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
569 delete cal2; in TestJapaneseFormat()
628 Calendar *cal2 = cal->clone(); in TestJapanese3860() local
646 cal2->clear(); in TestJapanese3860()
651 fmt->parse(samplestr, *cal2, pp); in TestJapanese3860()
658 cal2->setTime(aDate, s2); in TestJapanese3860()
[all …]
Dastrotst.cpp270 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local
297 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes()
298 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes()
299 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes()
301 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes()
302 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes()
303 UDate exprise = cal2->getTime(status); in TestSunriseTimes()
304 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes()
305 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes()
306 UDate expset = cal2->getTime(status); in TestSunriseTimes()
[all …]
Dcaltest.cpp266 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
269 cal2->setTime(when, status); in TestGenericAPI()
272 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
273 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
274 if (!cal->equals(*cal2, status) || in TestGenericAPI()
275 cal->before(*cal2, status) || in TestGenericAPI()
276 cal->after(*cal2, status) || in TestGenericAPI()
280 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
282 cal2->setTime(when + 1000, status); in TestGenericAPI()
283 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
[all …]
Dcalregts.cpp182 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local
185 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
189 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
191 delete cal2; in test4028518()
758 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362() local
766 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) ); in test4092362()
767 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) ); in test4092362()
768 if( *cal1 != *cal2 ) in test4092362()
772 delete cal2; in test4092362()
812 Calendar *cal2 = new GregorianCalendar(*GMT,status); in test4096231() local
[all …]
/external/icu4c/i18n/
Ducal.cpp343 const UCalendar* cal2) in ucal_equivalentTo() argument
346 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
/external/icu4c/i18n/unicode/
Ducal.h891 const UCalendar* cal2);