Lines Matching refs:amount
677 static void timelib_set_relative(const char **ptr, timelib_sll amount, int behavior, Scanner *s, in… in timelib_set_relative() argument
686 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break; in timelib_set_relative()
687 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break; in timelib_set_relative()
688 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break; in timelib_set_relative()
689 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break; in timelib_set_relative()
690 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break; in timelib_set_relative()
691 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break; in timelib_set_relative()
692 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break; in timelib_set_relative()
699 s->time->relative.d += (amount > 0 ? amount - 1 : amount) * 7; in timelib_set_relative()
710 s->time->relative.special.amount = amount; in timelib_set_relative()
6979 s->time->relative.special.amount = 0 - s->time->relative.special.amount; in scan()