/external/icu/icu4c/source/test/intltest/ |
D | astrotst.cpp | 382 GregorianCalendar cal3(TimeZone::getGMT()->clone(), Locale::getUS(), status); in TestBasics() local 390 cal3.clear(); in TestBasics() 391 cal3.set(UCAL_YEAR, 1980); in TestBasics() 392 cal3.set(UCAL_MONTH, UCAL_JULY); in TestBasics() 393 cal3.set(UCAL_DATE, 2); in TestBasics() 394 logln("cal3[a]=%.1lf, d=%d\n", cal3.getTime(status), cal3.get(UCAL_JULIAN_DAY,status)); in TestBasics() 397 logln(UnicodeString("cal3[a] = ") + d3->format(cal3.getTime(status),s)); in TestBasics() 399 cal3.clear(); in TestBasics() 400 cal3.set(UCAL_YEAR, 1980); in TestBasics() 401 cal3.set(UCAL_MONTH, UCAL_JULY); in TestBasics() [all …]
|
D | calregts.cpp | 893 Calendar *cal3 = new GregorianCalendar(*PST,status); in test4096231() local 895 cal3->set(UCAL_MILLISECOND, 0); in test4096231() 906 cal3->set(year, month, day, hr, min, sec); in test4096231() 907 logln(UnicodeString("RPST 1 is: ") + (t2=cal3->getTime(status))); in test4096231() 908 cal3->setTimeZone(*GMT); in test4096231() 909 logln(UnicodeString("RGMT 2 is: ") + (t3=cal3->getTime(status))); in test4096231() 910 cal3->set(cal1->get(UCAL_YEAR,status), in test4096231() 919 logln(UnicodeString("RGMT 3 is: ") + (t4=cal3->getTime(status))); in test4096231() 927 delete cal3; in test4096231()
|
D | caltest.cpp | 542 Calendar *cal3 = Calendar::createInstance(status); in TestGenericAPI() local 543 cal3->roll(Calendar::SECOND, (int32_t)0, status); in TestGenericAPI() 548 delete cal3; in TestGenericAPI()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/ |
D | AstroTest.java | 331 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()
|
D | DangiTest.java | 400 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()
|
D | CalendarRegressionTest.java | 531 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/ |
D | AstroTest.java | 334 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()
|
D | DangiTest.java | 403 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()
|
D | CalendarRegressionTest.java | 534 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/ |
D | dtitvfmtsample.cpp | 101 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()
|