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), status);
212 cal2->set(UCAL_HOUR,2);
214 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");
817 GregorianCalendar *cal2 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status);
818 /*cal2.set( Calendar::YEAR, 1997 );
819 cal2.set( Calendar::MONTH, 10 );
820 cal2.set( Calendar::DATE, 11 );
821 cal2.set( Calendar::HOUR, 10 );
822 cal2.set( Calendar::MINUTE, 20 );
823 cal2.set( Calendar::SECOND, 40 ); */
825 logln( UnicodeString(" Cal2 = ") + cal2->getTime(status) );
826 logln( UnicodeString(" Cal2 time in ms = ") + cal2->get(UCAL_MILLISECOND,status) );
827 if( *cal1 != *cal2 )
831 delete cal2;
883 Calendar *cal2 = new GregorianCalendar(*GMT,status);
885 cal2->set(UCAL_MILLISECOND, 0);
888 cal2->set(cal1->get(UCAL_YEAR,status),
896 logln(UnicodeString("RGMT 1 is: ") + (t1=cal2->getTime(status)));
917 delete cal2;
1515 GregorianCalendar *cal2 = (GregorianCalendar*)cal->clone();
1518 if (*cal != *cal2) {
1521 cal2->setGregorianChange(cut2,status);
1522 if ( *cal == *cal2) {
1527 delete cal2;
2308 Calendar *cal2 = cal.clone();
2311 cal2->setTime(date1, ec2);
2313 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2);
2314 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2);
2315 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2);
2323 delete cal2;