Lines Matching refs:cal2
197 GregorianCalendar *cal2 = cal1->clone() ; in test4028518() local
200 printdate(cal2, "cal2 - cloned(): ") ; in test4028518()
204 printdate(cal2, "cal2 should be unmodified:") ; in test4028518()
206 delete cal2; in test4028518()
215 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status), status); in Test9019() local
221 cal2->set(UCAL_HOUR,2); in Test9019()
223 cal2->clear(); in Test9019()
226 cal2->set(2012,UCAL_JANUARY,06); in Test9019()
232 printdate(cal2.getAlias(), "cal2 (expected date):") ; in Test9019()
234 if(!cal1->equals(*cal2,status)) { in Test9019()
826 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362() local
834 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) ); in test4092362()
835 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) ); in test4092362()
836 if( *cal1 != *cal2 ) in test4092362()
840 delete cal2; in test4092362()
892 Calendar *cal2 = new GregorianCalendar(*GMT,status); in test4096231() local
894 cal2->set(UCAL_MILLISECOND, 0); in test4096231()
897 cal2->set(cal1->get(UCAL_YEAR,status), in test4096231()
905 logln(UnicodeString("RGMT 1 is: ") + (t1=cal2->getTime(status))); in test4096231()
926 delete cal2; in test4096231()
1525 GregorianCalendar *cal2 = cal->clone(); in test4141665() local
1528 if (*cal != *cal2) { in test4141665()
1531 cal2->setGregorianChange(cut2,status); in test4141665()
1532 if ( *cal == *cal2) { in test4141665()
1537 delete cal2; in test4141665()
2350 LocalPointer<Calendar> cal2(cal.clone()); in TestJ438() local
2353 cal2->setTime(date1, ec2); in TestJ438()
2355 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2); in TestJ438()
2356 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2); in TestJ438()
2357 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2); in TestJ438()