Home | History | Annotate | Download | only in intltest

Lines Matching defs:cal2

183     GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ;
186 printdate(cal2, "cal2 - cloned(): ") ;
190 printdate(cal2, "cal2 should be unmodified:") ;
192 delete cal2;
771 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status);
772 /*cal2.set( Calendar::YEAR, 1997 );
773 cal2.set( Calendar::MONTH, 10 );
774 cal2.set( Calendar::DATE, 11 );
775 cal2.set( Calendar::HOUR, 10 );
776 cal2.set( Calendar::MINUTE, 20 );
777 cal2.set( Calendar::SECOND, 40 ); */
779 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) );
780 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) );
781 if( *cal1 != *cal2 )
785 delete cal2;
837 Calendar *cal2 = new GregorianCalendar(*GMT,status);
839 cal2->set(UCAL_MILLISECOND, 0);
842 cal2->set(cal1->get(UCAL_YEAR,status),
850 logln(UnicodeString("RGMT 1 is: ") + (t1=cal2->getTime(status)));
871 delete cal2;
1461 GregorianCalendar *cal2 = (GregorianCalendar*)cal->clone();
1464 if (*cal != *cal2) {
1467 cal2->setGregorianChange(cut2,status);
1468 if ( *cal == *cal2) {
1473 delete cal2;
2254 Calendar *cal2 = cal.clone();
2257 cal2->setTime(date1, ec2);
2259 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2);
2260 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2);
2261 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2);
2269 delete cal2;