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