Lines Matching refs:relunit
643 const timelib_relunit* relunit; in timelib_set_relative() local
645 if (!(relunit = timelib_lookup_relunit(ptr))) { in timelib_set_relative()
649 switch (relunit->unit) { in timelib_set_relative()
650 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break; in timelib_set_relative()
651 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break; in timelib_set_relative()
652 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break; in timelib_set_relative()
653 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break; in timelib_set_relative()
654 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break; in timelib_set_relative()
655 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break; in timelib_set_relative()
656 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break; in timelib_set_relative()
662 s->time->relative.weekday = relunit->multiplier; in timelib_set_relative()
669 s->time->relative.special.type = relunit->multiplier; in timelib_set_relative()
3963 const timelib_relunit* relunit; in scan() local
3969 relunit = timelib_lookup_relunit((char**) &ptr); in scan()
3970 s->time->relative.weekday = relunit->multiplier; in scan()