Lines Matching refs:cal1
181 GregorianCalendar *cal1 = new GregorianCalendar(status) ; in test4028518() local
184 delete cal1; in test4028518()
188 GregorianCalendar *cal2 = (GregorianCalendar*) cal1->clone() ; in test4028518()
190 printdate(cal1, "cal1: ") ; in test4028518()
192 cal1->add(UCAL_DATE, 1, status) ; in test4028518()
194 printdate(cal1, "cal1 after adding 1 day:") ; in test4028518()
196 delete cal1; in test4028518()
205 LocalPointer<GregorianCalendar> cal1(new GregorianCalendar(status), status); in Test9019() local
211 cal1->set(UCAL_HOUR, 1); in Test9019()
213 cal1->clear(); in Test9019()
216 cal1->set(2011,UCAL_MAY,06); in Test9019()
218 printdate(cal1.getAlias(), "cal1: ") ; in Test9019()
219 cal1->setLenient(FALSE); in Test9019()
220 cal1->add(UCAL_MONTH,8,status); in Test9019()
222 printdate(cal1.getAlias(), "cal1 (lenient) after adding 8 months:") ; in Test9019()
225 if(!cal1->equals(*cal2,status)) { in Test9019()
799 GregorianCalendar *cal1 = new GregorianCalendar(1997, 10, 11, 10, 20, 40,status); in test4092362() local
802 delete cal1; in test4092362()
812 logln( UnicodeString(" Cal1 = ") + cal1->getTime(status) ); in test4092362()
813 logln( UnicodeString(" Cal1 time in ms = ") + cal1->get(UCAL_MILLISECOND,status) ); in test4092362()
827 if( *cal1 != *cal2 ) in test4092362()
830 delete cal1; in test4092362()
863 Calendar *cal1 = new GregorianCalendar(*PST,status); in test4096231() local
868 delete cal1; in test4096231()
871 cal1->setTime(880698639000.0,status); in test4096231()
877 logln(UnicodeString("PST 1 is: ") + (h1=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
878 cal1->setTimeZone(*GMT); in test4096231()
879 logln(UnicodeString("GMT 2 is: ") + (h2=cal1->get(UCAL_HOUR_OF_DAY, status))); in test4096231()
888 cal2->set(cal1->get(UCAL_YEAR,status), in test4096231()
889 cal1->get(UCAL_MONTH,status), in test4096231()
890 cal1->get(UCAL_DATE,status), in test4096231()
891 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
892 cal1->get(UCAL_MINUTE,status), in test4096231()
893 cal1->get(UCAL_SECOND,status)); in test4096231()
901 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
902 cal1->get(UCAL_MONTH,status), in test4096231()
903 cal1->get(UCAL_DATE,status), in test4096231()
904 cal1->get(UCAL_HOUR_OF_DAY,status), in test4096231()
905 cal1->get(UCAL_MINUTE,status), in test4096231()
906 cal1->get(UCAL_SECOND,status)); in test4096231()
916 delete cal1; in test4096231()