Home
last modified time | relevance | path

Searched refs:cal3 (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dastrotst.cpp380 …GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), stat… in TestBasics() local
383 cal3->clear(); in TestBasics()
384 cal3->set(UCAL_YEAR, 1980); in TestBasics()
385 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
386 cal3->set(UCAL_DATE, 2); in TestBasics()
387 logln("cal3[a]=%.1lf, d=%d\n", cal3->getTime(status), cal3->get(UCAL_JULIAN_DAY,status)); in TestBasics()
390 logln(UnicodeString("cal3[a] = ") + d3->format(cal3->getTime(status),s)); in TestBasics()
392 cal3->clear(); in TestBasics()
393 cal3->set(UCAL_YEAR, 1980); in TestBasics()
394 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
[all …]
Dcalregts.cpp884 Calendar *cal3 = new GregorianCalendar(*PST,status); in test4096231() local
886 cal3->set(UCAL_MILLISECOND, 0); in test4096231()
897 cal3->set(year, month, day, hr, min, sec); in test4096231()
898 logln(UnicodeString("RPST 1 is: ") + (t2=cal3->getTime(status))); in test4096231()
899 cal3->setTimeZone(*GMT); in test4096231()
900 logln(UnicodeString("RGMT 2 is: ") + (t3=cal3->getTime(status))); in test4096231()
901 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
910 logln(UnicodeString("RGMT 3 is: ") + (t4=cal3->getTime(status))); in test4096231()
918 delete cal3; in test4096231()
Dcaltest.cpp516 Calendar *cal3 = Calendar::createInstance(status); in TestGenericAPI() local
517 cal3->roll(Calendar::SECOND, (int32_t)0, status); in TestGenericAPI()
522 delete cal3; in TestGenericAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java322 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics() local
323 …DateFormat d3 = DateFormat.getDateTimeInstance(cal3, DateFormat.MEDIUM,DateFormat.MEDIUM,Locale.US… in TestBasics()
324 cal3.clear(); in TestBasics()
325 cal3.set(Calendar.YEAR, 1980); in TestBasics()
326 cal3.set(Calendar.MONTH, Calendar.JULY); in TestBasics()
327 cal3.set(Calendar.DATE, 27); in TestBasics()
328 astro.setDate(cal3.getTime()); in TestBasics()
332 logln(d3.format(cal3.getTime()) + " => " + jd); in TestBasics()
334 errln("FAIL: " + d3.format(cal3.getTime()) + " => " + jd + in TestBasics()
DDangiTest.java390 DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault()); in TestCoverage() local
391 cal3.setTime(d); in TestCoverage()
394 assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3); in TestCoverage()
DCalendarRegression.java509 Calendar cal3 = new GregorianCalendar(PST); in Test4096231() local
511 cal3.set(Calendar.MILLISECOND, 0); in Test4096231()
522 cal3.set(year, month, day, hr, min, sec); in Test4096231()
523 logln("RPST 1 is: " + (t2=cal3.getTime().getTime())); in Test4096231()
524 cal3.setTimeZone(GMT); in Test4096231()
525 logln("RGMT 2 is: " + (t3=cal3.getTime().getTime())); in Test4096231()
526 cal3.set(cal1.get(Calendar.YEAR), in Test4096231()
535 logln("RGMT 3 is: " + (t4=cal3.getTime().getTime())); in Test4096231()
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp98 Calendar *cal3 = Calendar::createInstance(status); in dtitvfmtCustomized() local
99 cal3->set(2007,10,10,22,10,10); in dtitvfmtCustomized()
102 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()