Lines Matching full:amount
1467 void Calendar::roll(EDateFields field, int32_t amount, UErrorCode& status)
1469 roll((UCalendarDateFields)field, amount, status);
1472 void Calendar::roll(UCalendarDateFields field, int32_t amount, UErrorCode& status)
1474 if (amount == 0) {
1499 int32_t value = internalGet(field) + amount;
1524 int32_t newHour = (oldHour + amount) % (max + 1);
1539 int32_t mon = (internalGet(UCAL_MONTH) + amount) % (max+1);
1557 set(field, internalGet(field) + amount);
1625 int32_t day_of_month = (internalGet(UCAL_DAY_OF_MONTH) + amount*7 -
1683 int32_t day_of_year = (internalGet(UCAL_DAY_OF_YEAR) + amount*7 -
1704 double delta = amount * kOneDay; // Scale up from days to millis
1726 double delta = amount * kOneDay; // Scale up from days to millis
1743 double delta = amount * kOneWeek; // Scale up from weeks to millis
1761 set(field, internalGet(field) + amount);
1773 void Calendar::add(EDateFields field, int32_t amount, UErrorCode& status)
1775 Calendar::add((UCalendarDateFields)field, amount, status);
1779 void Calendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status)
1781 if (amount == 0) {
1786 // a computed amount of millis to the current millis. The only
1805 double delta = amount; // delta in ms
1810 set(field, get(field, status) + amount);
1818 set(field, get(field, status) + amount);