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.cpp886 Calendar *cal3 = new GregorianCalendar(*PST,status); in test4096231() local
888 cal3->set(UCAL_MILLISECOND, 0); in test4096231()
899 cal3->set(year, month, day, hr, min, sec); in test4096231()
900 logln(UnicodeString("RPST 1 is: ") + (t2=cal3->getTime(status))); in test4096231()
901 cal3->setTimeZone(*GMT); in test4096231()
902 logln(UnicodeString("RGMT 2 is: ") + (t3=cal3->getTime(status))); in test4096231()
903 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231()
912 logln(UnicodeString("RGMT 3 is: ") + (t4=cal3->getTime(status))); in test4096231()
920 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/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DAstroTest.java329 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics() local
330 …DateFormat d3 = DateFormat.getDateTimeInstance(cal3, DateFormat.MEDIUM,DateFormat.MEDIUM,Locale.US… in TestBasics()
331 cal3.clear(); in TestBasics()
332 cal3.set(Calendar.YEAR, 1980); in TestBasics()
333 cal3.set(Calendar.MONTH, Calendar.JULY); in TestBasics()
334 cal3.set(Calendar.DATE, 27); in TestBasics()
335 astro.setDate(cal3.getTime()); in TestBasics()
339 logln(d3.format(cal3.getTime()) + " => " + jd); in TestBasics()
341 errln("FAIL: " + d3.format(cal3.getTime()) + " => " + jd + in TestBasics()
DDangiTest.java398 DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault()); in TestCoverage() local
399 cal3.setTime(d); in TestCoverage()
402 assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3); in TestCoverage()
DCalendarRegressionTest.java525 Calendar cal3 = new GregorianCalendar(PST); in Test4096231() local
527 cal3.set(Calendar.MILLISECOND, 0); in Test4096231()
538 cal3.set(year, month, day, hr, min, sec); in Test4096231()
539 logln("RPST 1 is: " + (t2=cal3.getTime().getTime())); in Test4096231()
540 cal3.setTimeZone(GMT); in Test4096231()
541 logln("RGMT 2 is: " + (t3=cal3.getTime().getTime())); in Test4096231()
542 cal3.set(cal1.get(Calendar.YEAR), in Test4096231()
551 logln("RGMT 3 is: " + (t4=cal3.getTime().getTime())); in Test4096231()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DAstroTest.java328 GregorianCalendar cal3 = new GregorianCalendar(TimeZone.getTimeZone("GMT"), Locale.US); in TestBasics() local
329 …DateFormat d3 = DateFormat.getDateTimeInstance(cal3, DateFormat.MEDIUM,DateFormat.MEDIUM,Locale.US… in TestBasics()
330 cal3.clear(); in TestBasics()
331 cal3.set(Calendar.YEAR, 1980); in TestBasics()
332 cal3.set(Calendar.MONTH, Calendar.JULY); in TestBasics()
333 cal3.set(Calendar.DATE, 27); in TestBasics()
334 astro.setDate(cal3.getTime()); in TestBasics()
338 logln(d3.format(cal3.getTime()) + " => " + jd); in TestBasics()
340 errln("FAIL: " + d3.format(cal3.getTime()) + " => " + jd + in TestBasics()
DDangiTest.java397 DangiCalendar cal3 = new DangiCalendar(TimeZone.getDefault(), ULocale.getDefault()); in TestCoverage() local
398 cal3.setTime(d); in TestCoverage()
401 assertEquals("DangiCalendar() and DangiCalendar(TimeZone,ULocale)", cal1, cal3); in TestCoverage()
DCalendarRegressionTest.java524 Calendar cal3 = new GregorianCalendar(PST); in Test4096231() local
526 cal3.set(Calendar.MILLISECOND, 0); in Test4096231()
537 cal3.set(year, month, day, hr, min, sec); in Test4096231()
538 logln("RPST 1 is: " + (t2=cal3.getTime().getTime())); in Test4096231()
539 cal3.setTimeZone(GMT); in Test4096231()
540 logln("RGMT 2 is: " + (t3=cal3.getTime().getTime())); in Test4096231()
541 cal3.set(cal1.get(Calendar.YEAR), in Test4096231()
550 logln("RGMT 3 is: " + (t4=cal3.getTime().getTime())); in Test4096231()
/external/icu/icu4c/source/samples/dtitvfmtsample/
Ddtitvfmtsample.cpp100 Calendar *cal3 = Calendar::createInstance(status); in dtitvfmtCustomized() local
101 cal3->set(2007,10,10,22,10,10); in dtitvfmtCustomized()
104 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()