Lines Matching refs:amount
648 static void timelib_set_relative(const char **ptr, timelib_sll amount, int behavior, Scanner *s, in…
657 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break;
658 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
659 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
660 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
661 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break;
662 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break;
663 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break;
670 s->time->relative.d += (amount > 0 ? amount - 1 : amount) * 7;
681 s->time->relative.special.amount = amount;
1686 s->time->relative.special.amount = 0 - s->time->relative.special.amount;