Home
last modified time | relevance | path

Searched refs:ucal (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4c/source/test/cintltst/
Dccaltst.c1890 … UCalendar* ucal = ucal_open(tfdItemPtr->timezone, -1, tfdItemPtr->locale, UCAL_DEFAULT, &status); in TestFieldDifference() local
1896 ucal_setMillis(ucal, tfdItemPtr->start, &status); in TestFieldDifference()
1897 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status); in TestFieldDifference()
1898 MDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MONTH, &status); in TestFieldDifference()
1899 dDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_DATE, &status); in TestFieldDifference()
1900 HDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_HOUR, &status); in TestFieldDifference()
1901 mDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_MINUTE, &status); in TestFieldDifference()
1902 sDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_SECOND, &status); in TestFieldDifference()
1918 ucal_setMillis(ucal, tfdItemPtr->start, &status); in TestFieldDifference()
1919 yDf = ucal_getFieldDifference(ucal, tfdItemPtr->target, UCAL_YEAR, &status); in TestFieldDifference()
[all …]
Dcdattst.c427 UCalendar * ucal = ucal_open(trdfZone, -1, trdfLocale, UCAL_GREGORIAN, &status); in TestRelativeDateFormat() local
430 ucal_setMillis(ucal, ucal_getNow(), &status); in TestRelativeDateFormat()
431 year = ucal_get(ucal, UCAL_YEAR, &status); in TestRelativeDateFormat()
432 month = ucal_get(ucal, UCAL_MONTH, &status); in TestRelativeDateFormat()
433 day = ucal_get(ucal, UCAL_DATE, &status); in TestRelativeDateFormat()
434 ucal_setDateTime(ucal, year, month, day, 18, 49, 0, &status); /* set to today at 18:49:00 */ in TestRelativeDateFormat()
435 today = ucal_getMillis(ucal, &status); in TestRelativeDateFormat()
436 ucal_close(ucal); in TestRelativeDateFormat()
1553 UCalendar* ucal = ucal_open(zoneGMT, -1, "root", UCAL_GREGORIAN, &status); in TestContext() local
1574 ucal_setMillis(ucal, today, &status); in TestContext()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java1545 Calendar ucal = Calendar.getInstance(timezone, new ULocale(tfdItem.locale)); in TestFieldDifference() local
1546 ucal.setTimeInMillis(tfdItem.target); in TestFieldDifference()
1547 Date targetDate = ucal.getTime(); in TestFieldDifference()
1550 ucal.setTimeInMillis(tfdItem.start); in TestFieldDifference()
1551 yDf = ucal.fieldDifference(targetDate, YEAR); in TestFieldDifference()
1552 MDf = ucal.fieldDifference(targetDate, MONTH); in TestFieldDifference()
1553 dDf = ucal.fieldDifference(targetDate, DATE); in TestFieldDifference()
1554 HDf = ucal.fieldDifference(targetDate, HOUR); in TestFieldDifference()
1555 mDf = ucal.fieldDifference(targetDate, MINUTE); in TestFieldDifference()
1556 sDf = ucal.fieldDifference(targetDate, SECOND); in TestFieldDifference()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/
DIBMCalendarTest.java1546 Calendar ucal = Calendar.getInstance(timezone, new ULocale(tfdItem.locale)); in TestFieldDifference() local
1547 ucal.setTimeInMillis(tfdItem.target); in TestFieldDifference()
1548 Date targetDate = ucal.getTime(); in TestFieldDifference()
1551 ucal.setTimeInMillis(tfdItem.start); in TestFieldDifference()
1552 yDf = ucal.fieldDifference(targetDate, YEAR); in TestFieldDifference()
1553 MDf = ucal.fieldDifference(targetDate, MONTH); in TestFieldDifference()
1554 dDf = ucal.fieldDifference(targetDate, DATE); in TestFieldDifference()
1555 HDf = ucal.fieldDifference(targetDate, HOUR); in TestFieldDifference()
1556 mDf = ucal.fieldDifference(targetDate, MINUTE); in TestFieldDifference()
1557 sDf = ucal.fieldDifference(targetDate, SECOND); in TestFieldDifference()
[all …]
/external/icu/icu4c/source/i18n/
DAndroid.bp181 "ucal.cpp",
DMakefile.in72 ucal.o calendar.o gregocal.o timezone.o simpletz.o olsontz.o \
/external/icu/icu4c/source/test/depstest/
Ddependencies.txt875 ucal.o