Lines Matching refs:relunit
650 const timelib_relunit* relunit;
652 if (!(relunit = timelib_lookup_relunit(ptr))) {
656 switch (relunit->unit) {
657 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break;
658 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
659 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
660 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
661 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break;
662 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break;
663 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break;
671 s->time->relative.weekday = relunit->multiplier;
680 s->time->relative.special.type = relunit->multiplier;
1694 const timelib_relunit* relunit;
1700 relunit = timelib_lookup_relunit(&ptr);
1701 s->time->relative.weekday = relunit->multiplier;