Lines Matching full:amount
1488 void Calendar::roll(EDateFields field, int32_t amount, UErrorCode& status)
1490 roll((UCalendarDateFields)field, amount, status);
1493 void Calendar::roll(UCalendarDateFields field, int32_t amount, UErrorCode& status)
1495 if (amount == 0) {
1520 int32_t value = internalGet(field) + amount;
1545 int32_t newHour = (oldHour + amount) % (max + 1);
1560 int32_t mon = (internalGet(UCAL_MONTH) + amount) % (max+1);
1578 set(field, internalGet(field) + amount);
1646 int32_t day_of_month = (internalGet(UCAL_DAY_OF_MONTH) + amount*7 -
1704 int32_t day_of_year = (internalGet(UCAL_DAY_OF_YEAR) + amount*7 -
1725 double delta = amount * kOneDay; // Scale up from days to millis
1747 double delta = amount * kOneDay; // Scale up from days to millis
1764 double delta = amount * kOneWeek; // Scale up from weeks to millis
1782 set(field, internalGet(field) + amount);
1794 void Calendar::add(EDateFields field, int32_t amount, UErrorCode& status)
1796 Calendar::add((UCalendarDateFields)field, amount, status);
1800 void Calendar::add(UCalendarDateFields field, int32_t amount, UErrorCode& status)
1802 if (amount == 0) {
1807 // a computed amount of millis to the current millis. The only
1826 double delta = amount; // delta in ms
1831 set(field, get(field, status) + amount);
1839 set(field, get(field, status) + amount);