• Home
  • Raw
  • Download

Lines Matching refs:calendar

333     Calendar *calendar = new GregorianCalendar(pdt, status);  in test4040996()  local
338 calendar->set(UCAL_MONTH,3); in test4040996()
339 calendar->set(UCAL_DATE,18); in test4040996()
340 calendar->set(UCAL_SECOND, 30); in test4040996()
342 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
344 calendar->get(UCAL_DATE, status)); in test4040996()
345 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
346 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
348 calendar->add(UCAL_SECOND,6, status); in test4040996()
352 logln(UnicodeString("MONTH: ") + calendar->get(UCAL_MONTH, status)); in test4040996()
354 calendar->get(UCAL_DATE, status)); in test4040996()
355 logln(UnicodeString("MINUTE: ") + calendar->get(UCAL_MINUTE, status)); in test4040996()
356 logln(UnicodeString("SECOND: ") + calendar->get(UCAL_SECOND, status)); in test4040996()
357 if (calendar->get(UCAL_MONTH, status) != 3 || in test4040996()
358 calendar->get(UCAL_DATE, status) != 18 || in test4040996()
359 calendar->get(UCAL_SECOND, status) != 36) in test4040996()
362 delete calendar; in test4040996()
1538 GregorianCalendar *calendar = new GregorianCalendar(status); in test4142933() local
1541 delete calendar; in test4142933()
1545 calendar->roll((UCalendarDateFields)-1, TRUE, status); in test4142933()
1558 delete calendar; in test4142933()
1572 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145158() local
1575 delete calendar; in test4145158()
1579 calendar->adoptTimeZone(TimeZone::createTimeZone("GMT")); in test4145158()
1581 calendar->setTime(makeDate(INT32_MIN),status); in test4145158()
1582 int32_t year1 = calendar->get(UCAL_YEAR,status); in test4145158()
1583 int32_t era1 = calendar->get(UCAL_ERA,status); in test4145158()
1585 calendar->setTime(makeDate(INT32_MAX),status); in test4145158()
1586 int32_t year2 = calendar->get(UCAL_YEAR,status); in test4145158()
1587 int32_t era2 = calendar->get(UCAL_ERA,status); in test4145158()
1593 delete calendar; in test4145158()
1611 GregorianCalendar *calendar = new GregorianCalendar(status); in test4145983() local
1614 delete calendar; in test4145983()
1617 calendar->adoptTimeZone(TimeZone::createTimeZone("GMT")); in test4145983()
1620 calendar->setTime(DATES[i], status); in test4145983()
1621 int32_t year = calendar->get(UCAL_YEAR,status); in test4145983()
1622 int32_t maxYear = calendar->getMaximum(UCAL_YEAR); in test4145983()
1629 delete calendar; in test4145983()
1642 GregorianCalendar *calendar = new GregorianCalendar(status); in test4147269() local
1645 delete calendar; in test4147269()
1648 calendar->setLenient(FALSE); in test4147269()
1651 calendar->setTime(date,status); in test4147269()
1655 int32_t max = calendar->getMaximum((UCalendarDateFields)field); in test4147269()
1657 calendar->set((UCalendarDateFields)field, value); in test4147269()
1659 calendar->getTime(status); // Force time computation in test4147269()
1665 ", date after: " + calendar->getTime(status) + in test4147269()
1670 delete calendar; in test4147269()
1696 GregorianCalendar *calendar = new GregorianCalendar(zones[i], status); in Test4149677() local
1703 calendar->setTime(EARLIEST_SUPPORTED_MILLIS, status); in Test4149677()
1706 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::BC || U_FAILURE(status)) { in Test4149677()
1709 calendar->setTime(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1712 if (calendar->get(UCAL_ERA, status) != GregorianCalendar::AD || U_FAILURE(status)) { in Test4149677()
1716 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4149677()
1721 UBool is100Leap = calendar->isLeapYear(100); in Test4149677()
1728 delete calendar; in Test4149677()
1800 GregorianCalendar *calendar = new GregorianCalendar(1996, UCAL_FEBRUARY, 29, status); in Test4165343() local
1805 UDate start = calendar->getTime(status); in Test4165343()
1809 calendar->add(UCAL_MONTH, 12, status); in Test4165343()
1812 UDate date1 = calendar->getTime(status); in Test4165343()
1816 calendar->setTime(start, status); in Test4165343()
1819 calendar->add(UCAL_YEAR, 1, status); in Test4165343()
1822 UDate date2 = calendar->getTime(status); in Test4165343()
1831 delete calendar; in Test4165343()
1855 GregorianCalendar *calendar = new GregorianCalendar(Locale::getUS(), status); in Test4166109() local
1860 calendar->set(1998, UCAL_MARCH, 1); in Test4166109()
1861 calendar->setMinimalDaysInFirstWeek(1); in Test4166109()
1862 logln(UnicodeString("Date: ") + calendar->getTime(status)); // 888817448000 in Test4166109()
1864 int32_t firstInMonth = calendar->get(UCAL_DATE, status); in Test4166109()
1869 calendar->setFirstDayOfWeek((UCalendarDaysOfWeek)firstInWeek); in Test4166109()
1870 int32_t returned = calendar->getActualMaximum(field, status); in Test4166109()
1886 delete calendar; in Test4166109()
1922 GregorianCalendar *calendar = calendars[j]; in Test4167060() local
1924 calendar->setGregorianChange(EARLIEST_SUPPORTED_MILLIS, status); in Test4167060()
1927 calendar->setGregorianChange(LATEST_SUPPORTED_MILLIS, status); in Test4167060()
1932 format->adoptCalendar((Calendar*)calendar->clone()); in Test4167060()
1934 UDate dateBefore = calendar->getTime(status); in Test4167060()
1938 int32_t maxYear = calendar->getActualMaximum(field, status); in Test4167060()
1940 …logln(UnicodeString("maxYear: ") + maxYear + " for " + format->format(calendar->getTime(status), t… in Test4167060()
1948 calendar->set(field, years[i]); in Test4167060()
1949 UDate dateAfter = calendar->getTime(status); in Test4167060()
1952 int32_t newYear = calendar->get(field, status); in Test4167060()
1955 calendar->setTime(dateBefore, status); // restore calendar for next use in Test4167060()