Lines Matching refs:relunit
642 const timelib_relunit* relunit;
644 if (!(relunit = timelib_lookup_relunit(ptr))) {
648 switch (relunit->unit) {
649 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break;
650 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
651 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
652 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
653 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break;
654 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break;
655 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break;
661 s->time->relative.weekday = relunit->multiplier;
668 s->time->relative.special.type = relunit->multiplier;
1621 const timelib_relunit* relunit;
1627 relunit = timelib_lookup_relunit((char**) &ptr);
1628 s->time->relative.weekday = relunit->multiplier;