Home | History | Annotate | Download | only in intltest

Lines Matching defs:cal2

188     GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ;
191 printdate(cal2, "cal2 - cloned(): ") ;
195 printdate(cal2, "cal2 should be unmodified:") ;
197 delete cal2;
206 LocalPointer<GregorianCalendar> cal2(new GregorianCalendar(status));
208 cal2->set(UCAL_HOUR,2);
210 cal2->clear();
217 cal2->set(2012,UCAL_JANUARY,06);
223 printdate(cal2.getAlias(), "cal2 (expected date):") ;
225 if(!cal1->equals(*cal2,status)) {
226 errln("Error: cal1 != cal2.\n");
816 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status);
817 /*cal2.set( Calendar::YEAR, 1997 );
818 cal2.set( Calendar::MONTH, 10 );
819 cal2.set( Calendar::DATE, 11 );
820 cal2.set( Calendar::HOUR, 10 );
821 cal2.set( Calendar::MINUTE, 20 );
822 cal2.set( Calendar::SECOND, 40 ); */
824 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) );
825 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) );
826 if( *cal1 != *cal2 )
830 delete cal2;
882 Calendar *cal2 = new GregorianCalendar(*GMT,status);
884 cal2->set(UCAL_MILLISECOND, 0);
887 cal2->set(cal1->get(UCAL_YEAR,status),
895 logln(UnicodeString("RGMT 1 is: ") + (t1=cal2->getTime(status)));
916 delete cal2;
1514 GregorianCalendar *cal2 = (GregorianCalendar*)cal->clone();
1517 if (*cal != *cal2) {
1520 cal2->setGregorianChange(cut2,status);
1521 if ( *cal == *cal2) {
1526 delete cal2;
2307 Calendar *cal2 = cal.clone();
2310 cal2->setTime(date1, ec2);
2312 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2);
2313 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2);
2314 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2);
2322 delete cal2;