HomeSort by relevance Sort by last modified time
    Searched refs:cal (Results 1 - 25 of 253) sorted by null

1 2 3 4 5 6 7 8 91011

  /external/icu4c/samples/datecal/
ccal.c 20 UCalendar *cal = ucal_open(NULL, -1, NULL, UCAL_GREGORIAN, &status); local
26 ucal_set(cal, UCAL_YEAR, 2000);
27 ucal_set(cal, UCAL_MONTH, UCAL_FEBRUARY); /* FEBRUARY */
28 ucal_set(cal, UCAL_DATE, 26);
29 ucal_set(cal, UCAL_HOUR_OF_DAY, 23);
30 ucal_set(cal, UCAL_MINUTE, 0);
31 ucal_set(cal, UCAL_SECOND, 0);
32 ucal_set(cal, UCAL_MILLISECOND, 0);
38 ucal_get(cal, UCAL_YEAR, &status),
39 ucal_get(cal, UCAL_MONTH, &status) + 1
    [all...]
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DosUtils.java 42 final Calendar cal = Calendar.getInstance(); local
44 cal.set(Calendar.MILLISECOND, 0);
45 cal.set(Calendar.SECOND, (dosTime & 0x1f) * 2);
46 cal.set(Calendar.MINUTE, (dosTime >> 5) & 0x3f);
47 cal.set(Calendar.HOUR_OF_DAY, dosTime >> 11);
49 cal.set(Calendar.DATE, dosDate & 0x1f);
50 cal.set(Calendar.MONTH, ((dosDate >> 5) & 0x0f) - 1);
51 cal.set(Calendar.YEAR, 1980 + (dosDate >> 9));
53 return cal.getTimeInMillis();
63 Calendar cal = Calendar.getInstance() local
76 Calendar cal = Calendar.getInstance(); local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
CalendarTest.java 41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST")); local
43 cal.clear();
44 cal.set(Calendar.YEAR, 2002);
45 assertTrue("Incorrect result 0: " + cal.getTime().getTime(), cal
48 cal.clear();
49 cal.set(Calendar.YEAR, 2002);
50 cal.set(Calendar.MONTH, Calendar.MARCH);
51 assertTrue("Incorrect result 0a: " + cal.getTime(), cal.getTime(
400 Calendar cal = Calendar.getInstance(); local
415 Calendar cal = Calendar.getInstance(); local
428 Calendar cal = Calendar.getInstance(); local
453 Calendar cal = Calendar.getInstance(); local
465 Calendar cal = Calendar.getInstance(); local
795 Calendar cal = Calendar.getInstance(); local
952 Calendar cal = Calendar.getInstance(Locale.US); local
    [all...]
  /libcore/luni/src/test/java/tests/api/java/util/
CalendarTest.java 41 Calendar cal = Calendar.getInstance(TimeZone.getTimeZone("EST")); local
43 cal.clear();
44 cal.set(Calendar.YEAR, 2002);
45 assertTrue("Incorrect result 0: " + cal.getTime().getTime(), cal
48 cal.clear();
49 cal.set(Calendar.YEAR, 2002);
50 cal.set(Calendar.MONTH, Calendar.MARCH);
51 assertTrue("Incorrect result 0a: " + cal.getTime(), cal.getTime(
400 Calendar cal = Calendar.getInstance(); local
415 Calendar cal = Calendar.getInstance(); local
428 Calendar cal = Calendar.getInstance(); local
453 Calendar cal = Calendar.getInstance(); local
465 Calendar cal = Calendar.getInstance(); local
795 Calendar cal = Calendar.getInstance(); local
952 Calendar cal = Calendar.getInstance(Locale.US); local
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
callimts.h 27 virtual void test(UDate millis, Calendar *cal, DateFormat *fmt);
44 * @param cal The calendar instance to be tested.
47 void doTheoreticalLimitsTest(Calendar& cal, UBool leapMonth);
51 * test calendar 'cal' through 'numberOfDays' sequential days starting
67 * @param cal the calendar to be tested
76 void doLimitsTest(Calendar& cal, const int32_t* fieldsToTest, UDate startDate, int32_t testDuration);
81 void doLimitsTest(Calendar& cal, UDate startDate, int32_t endTime);
83 UnicodeString& ymdToString(const Calendar& cal, UnicodeString& str);
callimts.cpp 52 CalendarLimitTest::test(UDate millis, U_NAMESPACE_QUALIFIER Calendar* cal, U_NAMESPACE_QUALIFIER DateFormat* fmt)
58 cal->setTime(millis, exception);
66 logln(UnicodeString(" ") + theDate + " " + CalendarTest::calToStr(*cal));
99 Calendar *cal = Calendar::createInstance(status); local
101 cal->adoptTimeZone(TimeZone::createTimeZone("GMT"));
103 if(!fmt || !cal) {
104 dataerrln("can't open cal and/or fmt");
107 fmt->adoptCalendar(cal);
119 test(m, cal, fmt);
123 test(m, cal, fmt)
176 Calendar *cal = Calendar::createInstance(buf, status); local
    [all...]
calregts.cpp 130 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); local
133 delete cal;
137 cal->set(UCAL_YEAR, 1997);
138 cal->set(UCAL_DAY_OF_YEAR, 1);
139 UDate d = cal->getTime(status); // Should be Jan 1
140 failure(status, "cal->getTime");
142 delete cal;
153 GregorianCalendar *cal = new GregorianCalendar(status); local
156 delete cal;
161 cal->set(97, UCAL_JANUARY, 1, h, 34)
236 GregorianCalendar *cal = new GregorianCalendar(zone, status); local
328 Calendar *cal = Calendar::createInstance(status); local
442 Calendar *cal = Calendar::createInstance(TimeZone::createTimeZone("GMT"), local
474 Calendar *cal = new GregorianCalendar(status); local
499 GregorianCalendar *cal = new GregorianCalendar(status); local
530 GregorianCalendar *cal = new GregorianCalendar(status); local
587 Calendar *cal = Calendar::createInstance(status); local
664 Calendar *cal = new GregorianCalendar(status); local
714 Calendar *cal = Calendar::createInstance(status); local
916 GregorianCalendar *cal = (GregorianCalendar*)Calendar::createInstance(status); local
1218 Calendar *cal = Calendar::createInstance(status); local
1268 Calendar *cal = Calendar::createInstance(status); local
1336 Calendar *cal = Calendar::createInstance(status); local
1394 GregorianCalendar *cal = (GregorianCalendar*) Calendar::createInstance(status); local
1424 GregorianCalendar *cal = (GregorianCalendar*) Calendar::createInstance(status); local
1455 GregorianCalendar *cal = new GregorianCalendar(status); local
1694 GregorianCalendar *cal = new GregorianCalendar(tz, status); local
2220 Calendar& cal = *pcal; local
2309 Calendar *cal = Calendar::createInstance(ec); local
2386 Calendar *cal = Calendar::createInstance(Locale(testLocalePtr->locale), status); local
2422 Calendar* cal = Calendar::createInstance(ec); local
2495 Calendar* cal = Calendar::createInstance(loc, ec); local
2612 Calendar *cal = Calendar::createInstance(t, locale, ec); local
2654 Calendar *cal = Calendar::createInstance(status); local
    [all...]
caltest.cpp 27 UnicodeString CalendarTest::calToStr(const Calendar & cal)
34 out += (UnicodeString("") + fieldName((UCalendarDateFields)i) + "=" + cal.get((UCalendarDateFields)i, status) + UnicodeString(" "));
36 out += "[" + UnicodeString(cal.getType()) + "]";
38 if(cal.inDaylightTime(status)) {
46 out += cal.getTimeZone().getDisplayName(str2);
47 d = cal.getTime(status);
286 Calendar *cal = Calendar::createInstance(zone->clone(), status); local
289 if (*zone != cal->getTimeZone()) errln("FAIL: Calendar::getTimeZone failed");
291 Calendar *cal2 = Calendar::createInstance(cal->getTimeZone(), status);
293 cal->setTime(when, status)
561 GregorianCalendar* cal = new GregorianCalendar(status); local
802 Calendar *cal = Calendar::createInstance(status); local
837 Calendar *cal = Calendar::createInstance(status); local
1150 Calendar *cal = new GregorianCalendar(status); local
1339 Calendar *cal = new GregorianCalendar(1972, UCAL_OCTOBER, 26, status); local
1358 Calendar *cal=Calendar::createInstance(Locale::getGermany(), status); local
2055 Calendar *cal; local
    [all...]
caltztst.cpp 183 Calendar* cal = getCalendar(); local
184 if (cal == 0) return 0.0;
185 cal->clear();
186 cal->set(1900 + y, m, d, hr, min, sec); // Add 1900 to follow java.util.Date protocol
188 UDate dt = cal->getTime(status);
189 releaseCalendar(cal);
202 Calendar* cal = getCalendar();
203 if (cal == 0) return 0.0;
206 cal->get(Calendar::ZONE_OFFSET, status) -
207 cal->get(Calendar::DST_OFFSET, status)
221 Calendar* cal = getCalendar(); local
    [all...]
  /external/icu4c/test/intltest/
callimts.h 27 virtual void test(UDate millis, Calendar *cal, DateFormat *fmt);
44 * @param cal The calendar instance to be tested.
47 void doTheoreticalLimitsTest(Calendar& cal, UBool leapMonth);
51 * test calendar 'cal' through 'numberOfDays' sequential days starting
67 * @param cal the calendar to be tested
76 void doLimitsTest(Calendar& cal, const int32_t* fieldsToTest, UDate startDate, int32_t testDuration);
81 void doLimitsTest(Calendar& cal, UDate startDate, int32_t endTime);
83 UnicodeString& ymdToString(const Calendar& cal, UnicodeString& str);
callimts.cpp 52 CalendarLimitTest::test(UDate millis, icu::Calendar* cal, icu::DateFormat* fmt)
58 cal->setTime(millis, exception);
66 logln(UnicodeString(" ") + theDate + " " + CalendarTest::calToStr(*cal));
99 Calendar *cal = Calendar::createInstance(status); local
101 cal->adoptTimeZone(TimeZone::createTimeZone("GMT"));
103 if(!fmt || !cal) {
104 dataerrln("can't open cal and/or fmt");
107 fmt->adoptCalendar(cal);
119 test(m, cal, fmt);
123 test(m, cal, fmt)
177 Calendar *cal = Calendar::createInstance(buf, status); local
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldFormatterTest.java 56 Calendar cal = Calendar.getInstance(); local
59 cal.set(2008, Calendar.SEPTEMBER, 23, 18, 30);
81 fLoc.format(Locale.US, "%tA %tB %td %tT", cal, cal, cal, cal);
82 fNoL.format("%tA %tB %td %tT", cal, cal, cal, cal);
    [all...]
  /external/icu4c/samples/translit/answers/
main_1.cpp 19 Calendar *cal; local
27 cal = Calendar::createInstance(greece, status);
32 fmt->setCalendar(*cal);
36 defFmt->setCalendar(*cal);
44 cal->clear();
45 cal->set(1999, month, 4);
49 defFmt->format(cal->getTime(status), str, status);
57 fmt->format(cal->getTime(status), str, status);
66 delete cal;
main_2.cpp 19 Calendar *cal; local
28 cal = Calendar::createInstance(greece, status);
33 fmt->setCalendar(*cal);
37 defFmt->setCalendar(*cal);
52 cal->clear();
53 cal->set(1999, month, 4);
57 defFmt->format(cal->getTime(status), str, status);
65 fmt->format(cal->getTime(status), str, status);
80 delete cal;
main_3.cpp 30 Calendar *cal; local
40 cal = Calendar::createInstance(greece, status);
45 fmt->setCalendar(*cal);
49 defFmt->setCalendar(*cal);
71 cal->clear();
72 cal->set(1999, month, 4);
76 defFmt->format(cal->getTime(status), str, status);
84 fmt->format(cal->getTime(status), str, status);
106 delete cal;
main_4.cpp 30 Calendar *cal; local
41 cal = Calendar::createInstance(greece, status);
46 fmt->setCalendar(*cal);
50 defFmt->setCalendar(*cal);
75 cal->clear();
76 cal->set(1999, month, 4);
80 defFmt->format(cal->getTime(status), str, status);
88 fmt->format(cal->getTime(status), str, status);
115 delete cal;
  /external/icu4c/samples/datefmt/answers/
main_3.cpp 37 Calendar *cal; local
60 cal = Calendar::createInstance(status);
63 cal->adoptTimeZone(zone);
64 cal->clear();
65 cal->set(1999, Calendar::JUNE, 4);
66 date = cal->getTime(status);
78 cal->adoptTimeZone(createZone(TIMEZONE[j]));
79 fmt->setCalendar(*cal);
  /external/icu4c/samples/datefmt/
main.cpp 37 Calendar *cal; local
60 cal = Calendar::createInstance(status);
63 cal->adoptTimeZone(zone);
64 cal->clear();
65 cal->set(1999, Calendar::JUNE, 4);
66 date = cal->getTime(status);
78 cal->adoptTimeZone(createZone(TIMEZONE[j]));
79 fmt->setCalendar(*cal);
  /libcore/luni/src/test/java/libcore/java/text/
OldSimpleDateFormatTest.java 52 public void test(String pattern, Calendar cal, String expected, int field) {
56 format.format(cal.getTime(), buffer, position);
235 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); local
236 test.test(" G", cal, " AD", DateFormat.ERA_FIELD);
237 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD);
238 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD);
242 test.test(" M", cal, " 6", DateFormat.MONTH_FIELD);
245 test.test(" MM", cal, " 06", DateFormat.MONTH_FIELD);
246 test.test(" MMM", cal, " Jun", DateFormat.MONTH_FIELD);
247 test.test(" MMMM", cal, " June", DateFormat.MONTH_FIELD)
363 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); local
381 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); local
400 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); local
    [all...]
  /external/xmp_toolkit/XMPCore/src/com/adobe/xmp/
XMPDateTimeFactory.java 113 Calendar cal = dateTime.getCalendar(); local
114 cal.setTimeZone(TimeZone.getDefault());
115 return new XMPDateTimeImpl(cal);
131 GregorianCalendar cal = new GregorianCalendar(UTC); local
132 cal.setGregorianChange(new Date(Long.MIN_VALUE));
133 cal.setTimeInMillis(timeInMillis);
134 return new XMPDateTimeImpl(cal);
149 GregorianCalendar cal = new GregorianCalendar(); local
150 cal.setTimeInMillis(timeInMillis);
151 return new XMPDateTimeImpl(cal);
    [all...]
  /external/icu4c/i18n/
ucal.cpp 163 ucal_close(UCalendar *cal)
166 delete (Calendar*) cal;
170 ucal_clone(const UCalendar* cal,
175 Calendar* res = ((Calendar*)cal)->clone();
186 ucal_setTimeZone( UCalendar* cal,
199 ((Calendar*)cal)->adoptTimeZone(zone);
204 ucal_getTimeZoneID(const UCalendar *cal,
212 const TimeZone& tz = ((Calendar*)cal)->getTimeZone();
219 ucal_getTimeZoneDisplayName(const UCalendar* cal,
229 const TimeZone& tz = ((Calendar*)cal)->getTimeZone()
    [all...]
  /external/icu4c/samples/translit/
main.cpp 30 Calendar *cal; local
42 cal = Calendar::createInstance(greece, status);
47 fmt->setCalendar(*cal);
51 defFmt->setCalendar(*cal);
77 cal->clear();
78 cal->set(1999, month, 4);
82 defFmt->format(cal->getTime(status), str, status);
90 fmt->format(cal->getTime(status), str, status);
117 delete cal;
  /external/chromium_org/third_party/icu/source/test/cintltst/
ccaltst.c 645 UCalendar *cal = 0; local
653 cal=ucal_open(tzID, u_strlen(tzID), "en_US", UCAL_TRADITIONAL, &status);
666 ucal_setDateTime(cal, 1999, UCAL_MARCH, 12, 5, 25, 30, &status);
670 if(ucal_get(cal, UCAL_YEAR, &status)!=1999 || ucal_get(cal, UCAL_MONTH, &status)!=2 ||
671 ucal_get(cal, UCAL_DATE, &status)!=12 || ucal_get(cal, UCAL_HOUR, &status)!=5)
673 else if(ucal_get(cal, UCAL_DAY_OF_WEEK_IN_MONTH, &status)!=2 || ucal_get(cal, UCAL_DAY_OF_WEEK, &status)!=6
674 || ucal_get(cal, UCAL_WEEK_OF_MONTH, &status)!=2 || ucal_get(cal, UCAL_WEEK_OF_YEAR, &status)!= 10
792 UCalendar *cal = 0; local
957 UCalendar *cal = 0; local
1054 UCalendar *cal = 0; local
1127 UCalendar *gmtcal = 0, *cal = 0; local
1355 UCalendar *cal; local
1589 UCalendar * cal = ucal_open(NULL, 0, testDatesPtr->locale, UCAL_GREGORIAN, &status); local
1633 UCalendar * cal = ucal_open(NULL, 0, testDaysPtr->locale, UCAL_GREGORIAN, &status); local
    [all...]
  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
SimpleDateFormatTest.java 46 public void test(String pattern, Calendar cal, String expected,
51 format.format(cal.getTime(), buffer, position);
341 Calendar cal = new GregorianCalendar(1999, Calendar.JUNE, 2, 15, 3, 6); local
342 test.test(" G", cal, " AD", DateFormat.ERA_FIELD);
343 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD);
344 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD);
348 test.test(" y", cal, " 99", DateFormat.YEAR_FIELD);
349 test.test(" yy", cal, " 99", DateFormat.YEAR_FIELD);
356 test.test(" yyy", cal, " 1999", DateFormat.YEAR_FIELD);
357 test.test(" yyyy", cal, " 1999", DateFormat.YEAR_FIELD)
553 Calendar cal = new GregorianCalendar(); local
582 Calendar cal = new GregorianCalendar(1970, Calendar.JANUARY, 1); local
787 Calendar cal = new GregorianCalendar(); local
    [all...]
  /external/chromium_org/third_party/icu/source/i18n/unicode/
ucal.h 642 * @param cal The UCalendar to close.
646 ucal_close(UCalendar *cal);
670 * @param cal The calendar to copy
672 * @return A pointer to a UCalendar identical to cal.
676 ucal_clone(const UCalendar* cal,
682 * @param cal The UCalendar to set.
689 ucal_setTimeZone(UCalendar* cal,
715 * @param cal The UCalendar to query.
726 ucal_getTimeZoneDisplayName(const UCalendar* cal,
736 * @param cal The UCalendar to query
    [all...]

Completed in 868 milliseconds

1 2 3 4 5 6 7 8 91011