Lines Matching refs:ec
1110 UErrorCode ec = U_ZERO_ERROR;
1111 computeFields(ec);
1178 UErrorCode ec = U_ZERO_ERROR;
1179 computeFields(ec);
1275 void Calendar::computeFields(UErrorCode &ec)
1277 if (U_FAILURE(ec)) {
1283 getTimeZone().getOffset(localMillis, FALSE, rawOffset, dstOffset, ec);
1324 computeGregorianAndDOWFields(fFields[UCAL_JULIAN_DAY], ec);
1330 handleComputeFields(fFields[UCAL_JULIAN_DAY], ec);
1334 computeWeekFields(ec);
1370 void Calendar::computeGregorianAndDOWFields(int32_t julianDay, UErrorCode &ec)
1372 computeGregorianFields(julianDay, ec);
1394 void Calendar::computeGregorianFields(int32_t julianDay, UErrorCode & /* ec */) {
1419 void Calendar::computeWeekFields(UErrorCode &ec) {
1420 if(U_FAILURE(ec)) {
2044 int32_t Calendar::fieldDifference(UDate targetMs, UCalendarDateFields field, UErrorCode& ec) {
2045 if (U_FAILURE(ec)) return 0;
2047 double startMs = getTimeInMillis(ec);
2057 while (U_SUCCESS(ec)) {
2058 setTimeInMillis(startMs, ec);
2059 add(field, max, ec);
2060 double ms = getTimeInMillis(ec);
2077 ec = U_ILLEGAL_ARGUMENT_ERROR;
2081 while ((max - min) > 1 && U_SUCCESS(ec)) {
2083 setTimeInMillis(startMs, ec);
2084 add(field, t, ec);
2085 double ms = getTimeInMillis(ec);
2097 while (U_SUCCESS(ec)) {
2098 setTimeInMillis(startMs, ec);
2099 add(field, max, ec);
2100 double ms = getTimeInMillis(ec);
2114 ec = U_ILLEGAL_ARGUMENT_ERROR;
2119 while ((min - max) > 1 && U_SUCCESS(ec)) {
2121 setTimeInMillis(startMs, ec);
2122 add(field, t, ec);
2123 double ms = getTimeInMillis(ec);
2134 setTimeInMillis(startMs, ec);
2135 add(field, min, ec);
2138 if(U_FAILURE(ec)) {
2891 int32_t Calendar::computeZoneOffset(double millis, int32_t millisInDay, UErrorCode &ec) {
2898 btz->getOffsetFromLocal(wall, nonExistingTimeOpt, duplicatedTimeOpt, rawOffset, dstOffset, ec);
2902 tz.getOffset(wall, TRUE, rawOffset, dstOffset, ec);
2913 tz.getOffset(tgmt - 6*60*60*1000, FALSE, tmpRaw, tmpDst, ec);
2922 tz.getOffset(wall + offsetDelta, TRUE, rawOffset, dstOffset, ec);
2932 tz.getOffset(tgmt, FALSE, rawOffset, dstOffset, ec);