Lines Matching refs:relunit
651 const timelib_relunit* relunit;
653 if (!(relunit = timelib_lookup_relunit(ptr))) {
657 switch (relunit->unit) {
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;
669 s->time->relative.weekday = relunit->multiplier;
676 s->time->relative.special.type = relunit->multiplier;
1562 const timelib_relunit* relunit;
1568 relunit = timelib_lookup_relunit((char**) &ptr);
1569 s->time->relative.weekday = relunit->multiplier;