Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Dincaltst.cpp494 Calendar *cal2 = cal->clone(); in TestJapaneseFormat() local
521 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
523 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
552 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
555 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
562 delete cal2; in TestJapaneseFormat()
618 Calendar *cal2 = cal->clone(); in TestJapanese3860() local
636 cal2->clear(); in TestJapanese3860()
641 fmt->parse(samplestr, *cal2, pp); in TestJapanese3860()
648 cal2->setTime(aDate, s2); in TestJapanese3860()
[all …]
Dastrotst.cpp269 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local
296 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes()
297 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes()
298 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes()
300 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes()
301 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes()
302 UDate exprise = cal2->getTime(status); in TestSunriseTimes()
303 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes()
304 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes()
305 UDate expset = cal2->getTime(status); in TestSunriseTimes()
[all …]
Dcaltest.cpp381 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
384 cal2->setTime(when, status); in TestGenericAPI()
387 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
388 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
389 if (!cal->equals(*cal2, status) || in TestGenericAPI()
390 cal->before(*cal2, status) || in TestGenericAPI()
391 cal->after(*cal2, status) || in TestGenericAPI()
395 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
397 cal2->setTime(when + 1000, status); in TestGenericAPI()
398 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
[all …]
Dcalregts.cpp188 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local
191 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
195 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
197 delete cal2; in test4028518()
206 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status)); in Test9019() local
208 cal2->set(UCAL_HOUR,2); in Test9019()
210 cal2->clear(); in Test9019()
217 cal2->set(2012,UCAL_JANUARY,06); in Test9019()
223 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019()
225 if(!cal1->equals(*cal2,status)) { in Test9019()
[all …]
/external/chromium_org/third_party/icu/source/test/intltest/
Dincaltst.cpp497 Calendar *cal2 = cal->clone(); in TestJapaneseFormat() local
524 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
526 …aDate + " but got " + " = " + otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
555 fmt->parse(expected, *cal2, pp); in TestJapaneseFormat()
558 otherDate + ", " + str3 + " = " + CalendarTest::calToStr(*cal2) ); in TestJapaneseFormat()
565 delete cal2; in TestJapaneseFormat()
621 Calendar *cal2 = cal->clone(); in TestJapanese3860() local
639 cal2->clear(); in TestJapanese3860()
644 fmt->parse(samplestr, *cal2, pp); in TestJapanese3860()
651 cal2->setTime(aDate, s2); in TestJapanese3860()
[all …]
Dastrotst.cpp271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); in TestSunriseTimes() local
298 cal2->setTime(cal->getTime(status), status); in TestSunriseTimes()
299 cal2->set(UCAL_SECOND, 0); in TestSunriseTimes()
300 cal2->set(UCAL_MILLISECOND, 0); in TestSunriseTimes()
302 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+0]); in TestSunriseTimes()
303 cal2->set(UCAL_MINUTE, USNO[4*i+1]); in TestSunriseTimes()
304 UDate exprise = cal2->getTime(status); in TestSunriseTimes()
305 cal2->set(UCAL_HOUR_OF_DAY, USNO[4*i+2]); in TestSunriseTimes()
306 cal2->set(UCAL_MINUTE, USNO[4*i+3]); in TestSunriseTimes()
307 UDate expset = cal2->getTime(status); in TestSunriseTimes()
[all …]
Dcaltest.cpp360 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status); in TestGenericAPI() local
363 cal2->setTime(when, status); in TestGenericAPI()
366 if (!(*cal == *cal2)) errln("FAIL: Calendar::operator== failed"); in TestGenericAPI()
367 if ((*cal != *cal2)) errln("FAIL: Calendar::operator!= failed"); in TestGenericAPI()
368 if (!cal->equals(*cal2, status) || in TestGenericAPI()
369 cal->before(*cal2, status) || in TestGenericAPI()
370 cal->after(*cal2, status) || in TestGenericAPI()
374 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
376 cal2->setTime(when + 1000, status); in TestGenericAPI()
377 logln(UnicodeString("cal2=") +cal2->getTime(status) + UnicodeString(calToStr(*cal2))); in TestGenericAPI()
[all …]
Dcalregts.cpp188 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518() local
191 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
195 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
197 delete cal2; in test4028518()
206 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status)); in Test9019() local
208 cal2->set(UCAL_HOUR,2); in Test9019()
210 cal2->clear(); in Test9019()
217 cal2->set(2012,UCAL_JANUARY,06); in Test9019()
223 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019()
225 if(!cal1->equals(*cal2,status)) { in Test9019()
[all …]
/external/chromium_org/third_party/icu/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp104 Calendar *cal2 = Calendar::createInstance(status); in dtitvfmtCustomized() local
105 cal2->set(2007,10,10,10,10,10); in dtitvfmtCustomized()
109 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized()
110 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp96 Calendar *cal2 = Calendar::createInstance(status); in dtitvfmtCustomized() local
97 cal2->set(2007,10,10,10,10,10); in dtitvfmtCustomized()
101 new DateInterval(cal1->getTime(status),cal2->getTime(status)), in dtitvfmtCustomized()
102 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
/external/chromium_org/third_party/icu/source/i18n/unicode/
Ducal.h1074 const UCalendar* cal2);
/external/icu/icu4c/source/i18n/unicode/
Ducal.h1072 const UCalendar* cal2);
/external/chromium_org/third_party/icu/source/i18n/
Ducal.cpp434 const UCalendar* cal2) in ucal_equivalentTo() argument
437 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()
/external/icu/icu4c/source/i18n/
Ducal.cpp434 const UCalendar* cal2) in ucal_equivalentTo() argument
437 return ((Calendar*)cal1)->isEquivalentTo(*((Calendar*)cal2)); in ucal_equivalentTo()