Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Dastrotst.cpp383 …GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), stat… in TestBasics() local
386 cal3->clear(); in TestBasics()
387 cal3->set(UCAL_YEAR, 1980); in TestBasics()
388 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
389 cal3->set(UCAL_DATE, 2); in TestBasics()
390 logln("cal3[a]=%.1lf, d=%d\n", cal3->getTime(status), cal3->get(UCAL_JULIAN_DAY,status)); in TestBasics()
393 logln(UnicodeString("cal3[a] = ") + d3->format(cal3->getTime(status),s)); in TestBasics()
395 cal3->clear(); in TestBasics()
396 cal3->set(UCAL_YEAR, 1980); in TestBasics()
397 cal3->set(UCAL_MONTH, UCAL_JULY); in TestBasics()
[all …]
Dcalregts.cpp892 Calendar *cal3 = new GregorianCalendar(*PST,status); in test4096231() local
894 cal3->set(UCAL_MILLISECOND, 0); in test4096231()
905 cal3->set(year, month, day, hr, min, sec); in test4096231()
906 logln(UnicodeString("RPST 1 is: ") + (t2=cal3->getTime(status))); in test4096231()
907 cal3->setTimeZone(*GMT); in test4096231()
908 logln(UnicodeString("RGMT 2 is: ") + (t3=cal3->getTime(status))); in test4096231()
909 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
918 logln(UnicodeString("RGMT 3 is: ") + (t4=cal3->getTime(status))); in test4096231()
926 delete cal3; in test4096231()
Dcaltest.cpp525 Calendar *cal3 = Calendar::createInstance(status); in TestGenericAPI() local
526 cal3->roll(Calendar::SECOND, (int32_t)0, status); in TestGenericAPI()
531 delete cal3; in TestGenericAPI()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java331 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics() local
332 …DateFormat d3 = DateFormat.getDateTimeInstance(cal3, DateFormat.MEDIUM,DateFormat.MEDIUM,Locale.US… in TestBasics()
333 cal3.clear(); in TestBasics()
334 cal3.set(Calendar.YEAR, 1980); in TestBasics()
335 cal3.set(Calendar.MONTH, Calendar.JULY); in TestBasics()
336 cal3.set(Calendar.DATE, 27); in TestBasics()
337 astro.setDate(cal3.getTime()); in TestBasics()
341 logln(d3.format(cal3.getTime()) + " => " + jd); in TestBasics()
343 errln("FAIL: " + d3.format(cal3.getTime()) + " => " + jd + in TestBasics()
DDangiTest.java400 DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault()); in TestCoverage() local
401 cal3.setTime(d); in TestCoverage()
404 assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3); in TestCoverage()
DCalendarRegressionTest.java531 Calendar cal3 = new GregorianCalendar(PST); in Test4096231() local
533 cal3.set(Calendar.MILLISECOND, 0); in Test4096231()
544 cal3.set(year, month, day, hr, min, sec); in Test4096231()
545 logln("RPST 1 is: " + (t2=cal3.getTime().getTime())); in Test4096231()
546 cal3.setTimeZone(GMT); in Test4096231()
547 logln("RGMT 2 is: " + (t3=cal3.getTime().getTime())); in Test4096231()
548 cal3.set(cal1.get(Calendar.YEAR), in Test4096231()
557 logln("RGMT 3 is: " + (t4=cal3.getTime().getTime())); in Test4096231()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DAstroTest.java334 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics() local
335 …DateFormat d3 = DateFormat.getDateTimeInstance(cal3, DateFormat.MEDIUM,DateFormat.MEDIUM,Locale.US… in TestBasics()
336 cal3.clear(); in TestBasics()
337 cal3.set(Calendar.YEAR, 1980); in TestBasics()
338 cal3.set(Calendar.MONTH, Calendar.JULY); in TestBasics()
339 cal3.set(Calendar.DATE, 27); in TestBasics()
340 astro.setDate(cal3.getTime()); in TestBasics()
344 logln(d3.format(cal3.getTime()) + " => " + jd); in TestBasics()
346 errln("FAIL: " + d3.format(cal3.getTime()) + " => " + jd + in TestBasics()
DDangiTest.java403 DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault()); in TestCoverage() local
404 cal3.setTime(d); in TestCoverage()
407 assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3); in TestCoverage()
DCalendarRegressionTest.java534 Calendar cal3 = new GregorianCalendar(PST); in Test4096231() local
536 cal3.set(Calendar.MILLISECOND, 0); in Test4096231()
547 cal3.set(year, month, day, hr, min, sec); in Test4096231()
548 logln("RPST 1 is: " + (t2=cal3.getTime().getTime())); in Test4096231()
549 cal3.setTimeZone(GMT); in Test4096231()
550 logln("RGMT 2 is: " + (t3=cal3.getTime().getTime())); in Test4096231()
551 cal3.set(cal1.get(Calendar.YEAR), in Test4096231()
560 logln("RGMT 3 is: " + (t4=cal3.getTime().getTime())); in Test4096231()
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp101 Calendar *cal3 = Calendar::createInstance(status); in dtitvfmtCustomized() local
102 cal3->set(2007,10,10,22,10,10); in dtitvfmtCustomized()
105 new DateInterval(cal2->getTime(status),cal3->getTime(status)) in dtitvfmtCustomized()
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DCalendarTest.java28 Calendar cal3 = Calendar.getInstance(); in testHashCode() local
33 cal3.setTimeInMillis(t); in testHashCode()
35 cal3.setMinimalDaysInFirstWeek(cal3.getMinimalDaysInFirstWeek()+1); in testHashCode()
36 testEHCS(cal1, cal2, cal3); in testHashCode()