Home
last modified time | relevance | path

Searched refs:fieldDifference (Results 1 – 25 of 37) sorted by relevance

12

/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/calendar/
DIBMCalendarTest.java519 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference()
520 int d = cal.fieldDifference(date2004, Calendar.DAY_OF_YEAR); in TestLeapFieldDifference()
527 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference()
528 d = cal.fieldDifference(date2000, Calendar.DAY_OF_YEAR); in TestLeapFieldDifference()
539 d = cal.fieldDifference(ayl, Calendar.DAY_OF_MONTH); in TestLeapFieldDifference()
541 int d2 = cal.fieldDifference(asl, Calendar.DAY_OF_MONTH); in TestLeapFieldDifference()
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()
[all …]
DCalendarRegressionTest.java1793 int dy = cal.fieldDifference(date2, Calendar.YEAR);
1794 int dm = cal.fieldDifference(date2, Calendar.MONTH);
1795 int dd = cal.fieldDifference(date2, Calendar.DATE);
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/calendar/
DIBMCalendarTest.java519 int y = cal.fieldDifference(date2004, Calendar.YEAR); in TestLeapFieldDifference()
520 int d = cal.fieldDifference(date2004, Calendar.DAY_OF_YEAR); in TestLeapFieldDifference()
527 y = cal.fieldDifference(date2000, Calendar.YEAR); in TestLeapFieldDifference()
528 d = cal.fieldDifference(date2000, Calendar.DAY_OF_YEAR); in TestLeapFieldDifference()
539 d = cal.fieldDifference(ayl, Calendar.DAY_OF_MONTH); in TestLeapFieldDifference()
541 int d2 = cal.fieldDifference(asl, Calendar.DAY_OF_MONTH); in TestLeapFieldDifference()
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()
[all …]
DCalendarRegressionTest.java1790 int dy = cal.fieldDifference(date2, Calendar.YEAR);
1791 int dm = cal.fieldDifference(date2, Calendar.MONTH);
1792 int dd = cal.fieldDifference(date2, Calendar.DATE);
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/
DDateIntervalInfo.java1086 int fieldDifference = 1; in getBestSkeleton() local
1094 fieldDifference = -1; in getBestSkeleton()
1097 fieldDifference = -1; in getBestSkeleton()
1109 bestFieldDifference = fieldDifference; in getBestSkeleton()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DDateIntervalInfo.java1119 int fieldDifference = 1; in getBestSkeleton() local
1127 fieldDifference = -1; in getBestSkeleton()
1130 fieldDifference = -1; in getBestSkeleton()
1142 bestFieldDifference = fieldDifference; in getBestSkeleton()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Ddtitvinf.cpp612 int8_t fieldDifference = 1; in getBestSkeleton() local
620 fieldDifference = -1; in getBestSkeleton()
623 fieldDifference = -1; in getBestSkeleton()
637 bestMatchDistanceInfo = fieldDifference; in getBestSkeleton()
Ducal.cpp636 return ((Calendar*)cal)->fieldDifference(target, field, *status); in ucal_getFieldDifference()
Dcalendar.cpp2270 int32_t Calendar::fieldDifference(UDate when, EDateFields field, UErrorCode& status) { in fieldDifference() function in Calendar
2271 return fieldDifference(when, (UCalendarDateFields) field, status); in fieldDifference()
2274 int32_t Calendar::fieldDifference(UDate targetMs, UCalendarDateFields field, UErrorCode& ec) { in fieldDifference() function in Calendar
/third_party/node/deps/icu-small/source/i18n/
Ddtitvinf.cpp631 int8_t fieldDifference = 1; in getBestSkeleton() local
639 fieldDifference = -1; in getBestSkeleton()
642 fieldDifference = -1; in getBestSkeleton()
656 bestMatchDistanceInfo = fieldDifference; in getBestSkeleton()
Ducal.cpp660 return ((Calendar*)cal)->fieldDifference(target, field, *status); in ucal_getFieldDifference()
Dcalendar.cpp2286 int32_t Calendar::fieldDifference(UDate when, EDateFields field, UErrorCode& status) { in fieldDifference() function in Calendar
2287 return fieldDifference(when, (UCalendarDateFields) field, status); in fieldDifference()
2290 int32_t Calendar::fieldDifference(UDate targetMs, UCalendarDateFields field, UErrorCode& ec) { in fieldDifference() function in Calendar
/third_party/icu/docs/userguide/datetime/calendar/
Dindex.md144 `fieldDifference()`.
154 The `fieldDifference()` method is the inverse of the `add()` method. It computes the
156 terms of a specified field. Repeated calls to `fieldDifference()` compute the
159 with the results of `fieldDifference(when, n)`, then the calendar is moved toward
168 int yearDiff = cal.fieldDifference(date, Calendar.YEAR); // yearDiff <= 0
169 int monthDiff = cal.fieldDifference(date, Calendar.MONTH); // monthDiff ;<= 3
171 int dayDiff = cal.fieldDifference(date, Calendar.DAY_OF_MONTH); // dayDiff ;<=19
/third_party/skia/third_party/externals/icu/source/i18n/
Ddtitvinf.cpp649 int8_t fieldDifference = 1; in getBestSkeleton() local
657 fieldDifference = -1; in getBestSkeleton()
660 fieldDifference = -1; in getBestSkeleton()
674 bestMatchDistanceInfo = fieldDifference; in getBestSkeleton()
Ducal.cpp660 return ((Calendar*)cal)->fieldDifference(target, field, *status); in ucal_getFieldDifference()
Dcalendar.cpp2286 int32_t Calendar::fieldDifference(UDate when, EDateFields field, UErrorCode& status) { in fieldDifference() function in Calendar
2287 return fieldDifference(when, (UCalendarDateFields) field, status); in fieldDifference()
2290 int32_t Calendar::fieldDifference(UDate targetMs, UCalendarDateFields field, UErrorCode& ec) { in fieldDifference() function in Calendar
/third_party/icu/icu4c/source/i18n/
Ddtitvinf.cpp649 int8_t fieldDifference = 1; in getBestSkeleton() local
657 fieldDifference = -1; in getBestSkeleton()
660 fieldDifference = -1; in getBestSkeleton()
674 bestMatchDistanceInfo = fieldDifference; in getBestSkeleton()
Ducal.cpp660 return ((Calendar*)cal)->fieldDifference(target, field, *status); in ucal_getFieldDifference()
Dcalendar.cpp2286 int32_t Calendar::fieldDifference(UDate when, EDateFields field, UErrorCode& status) { in fieldDifference() function in Calendar
2287 return fieldDifference(when, (UCalendarDateFields) field, status); in fieldDifference()
2290 int32_t Calendar::fieldDifference(UDate targetMs, UCalendarDateFields field, UErrorCode& ec) { in fieldDifference() function in Calendar
/third_party/icu/icu4c/source/test/intltest/
Dcalregts.cpp2343 int32_t dy = cal.fieldDifference(date2, UCAL_YEAR, ec); in TestJ438()
2344 int32_t dm = cal.fieldDifference(date2, UCAL_MONTH, ec); in TestJ438()
2345 int32_t dd = cal.fieldDifference(date2, UCAL_DATE, ec); in TestJ438()
2355 int32_t dy2 = cal2->fieldDifference(date2, Calendar::YEAR, ec2); in TestJ438()
2356 int32_t dm2 = cal2->fieldDifference(date2, Calendar::MONTH, ec2); in TestJ438()
2357 int32_t dd2 = cal2->fieldDifference(date2, Calendar::DATE, ec2); in TestJ438()
2533 int32_t y = cal->fieldDifference(date2004, UCAL_YEAR, ec); in TestLeapFieldDifference()
2534 int32_t d = cal->fieldDifference(date2004, UCAL_DAY_OF_YEAR, ec); in TestLeapFieldDifference()
2546 y = cal->fieldDifference(date2000, UCAL_YEAR, ec); in TestLeapFieldDifference()
2547 d = cal->fieldDifference(date2000, UCAL_DAY_OF_YEAR, ec); in TestLeapFieldDifference()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
Dcalendar.h766 virtual int32_t fieldDifference(UDate when, EDateFields field, UErrorCode& status);
824 virtual int32_t fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status);
/third_party/icu/icu4c/source/i18n/unicode/
Dcalendar.h766 virtual int32_t fieldDifference(UDate when, EDateFields field, UErrorCode& status);
824 virtual int32_t fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status);
/third_party/flutter/skia/third_party/externals/icu/source/i18n/unicode/
Dcalendar.h756 virtual int32_t fieldDifference(UDate when, EDateFields field, UErrorCode& status);
813 virtual int32_t fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status);
/third_party/node/deps/icu-small/source/i18n/unicode/
Dcalendar.h766 virtual int32_t fieldDifference(UDate when, EDateFields field, UErrorCode& status);
824 virtual int32_t fieldDifference(UDate when, UCalendarDateFields field, UErrorCode& status);
/third_party/boost/libs/locale/src/icu/
Ddate_time.cpp234 int diff = self->fieldDifference(other_time,to_icu(p),err); in difference()

12