Lines Matching refs:cal1
189 GregorianCalendar *cal1 = new GregorianCalendar(status) ; in test4028518() local
192 delete cal1; in test4028518()
196 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518()
198 printdate(cal1, "cal1: ") ; in test4028518()
200 cal1->add(UCAL_DATE, 1, status) ; in test4028518()
202 printdate(cal1, "cal1 after adding 1 day:") ; in test4028518()
204 delete cal1; in test4028518()
213 LocalPointer<GregorianCalendar> cal1(new GregorianCalendar(status), status); in Test9019() local
219 cal1->set(UCAL_HOUR, 1); in Test9019()
221 cal1->clear(); in Test9019()
224 cal1->set(2011,UCAL_MAY,06); in Test9019()
226 printdate(cal1.getAlias(), "cal1: ") ; in Test9019()
227 cal1->setLenient(FALSE); in Test9019()
228 cal1->add(UCAL_MONTH,8,status); in Test9019()
230 printdate(cal1.getAlias(), "cal1 (lenient) after adding 8 months:") ; in Test9019()
233 if(!cal1->equals(*cal2,status)) { in Test9019()
807 GregorianCalendar *cal1 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362() local
810 delete cal1; in test4092362()
820 logln( UnicodeString(" Cal1 = ") + cal1->getTime(status) ); in test4092362()
821 logln( UnicodeString(" Cal1 time in ms = ") + cal1->get(UCAL_MILLISECOND,status) ); in test4092362()
835 if( *cal1 != *cal2 ) in test4092362()
838 delete cal1; in test4092362()
871 Calendar *cal1 = new GregorianCalendar(*PST,status); in test4096231() local
876 delete cal1; in test4096231()
879 cal1->setTime(880698639000.0,status); in test4096231()
885 logln(UnicodeString("PST 1 is: ") + (h1=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
886 cal1->setTimeZone(*GMT); in test4096231()
887 logln(UnicodeString("GMT 2 is: ") + (h2=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
896 cal2->set(cal1->get(UCAL_YEAR,status), in test4096231()
897 cal1->get(UCAL_MONTH,status), in test4096231()
898 cal1->get(UCAL_DATE,status), in test4096231()
899 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
900 cal1->get(UCAL_MINUTE,status), in test4096231()
901 cal1->get(UCAL_SECOND,status)); in test4096231()
909 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
910 cal1->get(UCAL_MONTH,status), in test4096231()
911 cal1->get(UCAL_DATE,status), in test4096231()
912 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
913 cal1->get(UCAL_MINUTE,status), in test4096231()
914 cal1->get(UCAL_SECOND,status)); in test4096231()
924 delete cal1; in test4096231()