Lines Matching refs:calendar
338 Calendar *calendar = new GregorianCalendar(pdt, status); in test4040996() local
343 calendar->set(UCAL_MONTH,3); in test4040996()
344 calendar->set(UCAL_DATE,18); in test4040996()
345 calendar->set(UCAL_SECOND, 30); in test4040996()
347 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
349 calendar->get(UCAL_DATE, status)); in test4040996()
350 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
351 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
353 calendar->add(UCAL_SECOND,6, status); in test4040996()
357 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
359 calendar->get(UCAL_DATE, status)); in test4040996()
360 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
361 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
362 if (calendar->get(UCAL_MONTH, status) != 3 || in test4040996()
363 calendar->get(UCAL_DATE, status) != 18 || in test4040996()
364 calendar->get(UCAL_SECOND, status) != 36) in test4040996()
367 delete calendar; in test4040996()
1543 GregorianCalendar *calendar = new GregorianCalendar(status); in test4142933() local
1546 delete calendar; in test4142933()
1550 calendar->roll((UCalendarDateFields)-1, TRUE, status); in test4142933()
1563 delete calendar; in test4142933()
1577 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145158() local
1580 delete calendar; in test4145158()
1584 calendar->adoptTimeZone(TimeZone::createTimeZone("GMT")); in test4145158()
1586 calendar->setTime(makeDate(INT32_MIN),status); in test4145158()
1587 int32_t year1 = calendar->get(UCAL_YEAR,status); in test4145158()
1588 int32_t era1 = calendar->get(UCAL_ERA,status); in test4145158()
1590 calendar->setTime(makeDate(INT32_MAX),status); in test4145158()
1591 int32_t year2 = calendar->get(UCAL_YEAR,status); in test4145158()
1592 int32_t era2 = calendar->get(UCAL_ERA,status); in test4145158()
1598 delete calendar; in test4145158()
1616 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145983() local
1619 delete calendar; in test4145983()
1622 calendar->adoptTimeZone(TimeZone::createTimeZone("GMT")); in test4145983()
1625 calendar->setTime(DATES[i], status); in test4145983()
1626 int32_t year = calendar->get(UCAL_YEAR,status); in test4145983()
1627 int32_t maxYear = calendar->getMaximum(UCAL_YEAR); in test4145983()
1634 delete calendar; in test4145983()
1647 GregorianCalendar *calendar = new GregorianCalendar(status); in test4147269() local
1650 delete calendar; in test4147269()
1653 calendar->setLenient(FALSE); in test4147269()
1656 calendar->setTime(date,status); in test4147269()
1660 int32_t max = calendar->getMaximum((UCalendarDateFields)field); in test4147269()
1662 calendar->set((UCalendarDateFields)field, value); in test4147269()
1664 calendar->getTime(status); // Force time computation in test4147269()
1670 ", date after: " + calendar->getTime(status) + in test4147269()
1675 delete calendar; in test4147269()
1701 GregorianCalendar *calendar = new GregorianCalendar(zones[i], status); in Test4149677() local
1708 calendar->setTime(EARLIEST_SUPPORTED_MILLIS, status); in Test4149677()
1711 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::BC || U_FAILURE(status)) { in Test4149677()
1714 calendar->setTime(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1717 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::AD || U_FAILURE(status)) { in Test4149677()
1721 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1726 UBool is100Leap = calendar->isLeapYear(100); in Test4149677()
1733 delete calendar; in Test4149677()
1805 GregorianCalendar *calendar = new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status); in Test4165343() local
1810 UDate start = calendar->getTime(status); in Test4165343()
1814 calendar->add(UCAL_MONTH, 12, status); in Test4165343()
1817 UDate date1 = calendar->getTime(status); in Test4165343()
1821 calendar->setTime(start, status); in Test4165343()
1824 calendar->add(UCAL_YEAR, 1, status); in Test4165343()
1827 UDate date2 = calendar->getTime(status); in Test4165343()
1836 delete calendar; in Test4165343()
1860 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); in Test4166109() local
1865 calendar->set(1998, UCAL_MARCH, 1); in Test4166109()
1866 calendar->setMinimalDaysInFirstWeek(1); in Test4166109()
1867 logln(UnicodeString("Date: ") + calendar->getTime(status)); // 888817448000 in Test4166109()
1869 int32_t firstInMonth = calendar->get(UCAL_DATE, status); in Test4166109()
1874 calendar->setFirstDayOfWeek((UCalendarDaysOfWeek)firstInWeek); in Test4166109()
1875 int32_t returned = calendar->getActualMaximum(field, status); in Test4166109()
1891 delete calendar; in Test4166109()
1927 GregorianCalendar *calendar = calendars[j]; in Test4167060() local
1929 calendar->setGregorianChange(EARLIEST_SUPPORTED_MILLIS, status); in Test4167060()
1932 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4167060()
1937 format->adoptCalendar((Calendar*)calendar->clone()); in Test4167060()
1939 UDate dateBefore = calendar->getTime(status); in Test4167060()
1943 int32_t maxYear = calendar->getActualMaximum(field, status); in Test4167060()
1945 …logln(UnicodeString("maxYear: ") + maxYear + " for " + format->format(calendar->getTime(status), t… in Test4167060()
1953 calendar->set(field, years[i]); in Test4167060()
1954 UDate dateAfter = calendar->getTime(status); in Test4167060()
1957 int32_t newYear = calendar->get(field, status); in Test4167060()
1960 calendar->setTime(dateBefore, status); // restore calendar for next use in Test4167060()