Lines Matching refs:relunit
735 const timelib_relunit* relunit; in timelib_set_relative() local
737 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative()
741 switch (relunit->unit) { in timelib_set_relative()
742 …case TIMELIB_MICROSEC: add_with_overflow(s, &s->time->relative.us, amount, relunit->multiplier); b… in timelib_set_relative()
743 …case TIMELIB_SECOND: add_with_overflow(s, &s->time->relative.s, amount, relunit->multiplier); br… in timelib_set_relative()
744 …case TIMELIB_MINUTE: add_with_overflow(s, &s->time->relative.i, amount, relunit->multiplier); br… in timelib_set_relative()
745 …case TIMELIB_HOUR: add_with_overflow(s, &s->time->relative.h, amount, relunit->multiplier); br… in timelib_set_relative()
746 …case TIMELIB_DAY: add_with_overflow(s, &s->time->relative.d, amount, relunit->multiplier); br… in timelib_set_relative()
747 …case TIMELIB_MONTH: add_with_overflow(s, &s->time->relative.m, amount, relunit->multiplier); br… in timelib_set_relative()
748 …case TIMELIB_YEAR: add_with_overflow(s, &s->time->relative.y, amount, relunit->multiplier); br… in timelib_set_relative()
756 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
765 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative()
8484 const timelib_relunit* relunit; in scan() local
8490 relunit = timelib_lookup_relunit(&ptr); in scan()
8491 s->time->relative.weekday = relunit->multiplier; in scan()