Lines Matching refs:relative
99 #define TIMELIB_HAVE_WEEKDAY_RELATIVE() { s->time->have_relative = 1; s->time->relative.have_weekda…
100 #define TIMELIB_HAVE_SPECIAL_RELATIVE() { s->time->have_relative = 1; s->time->relative.have_specia…
225 /* The relative text table. */
648 case TIMELIB_MICROSEC: s->time->relative.us += amount * relunit->multiplier; break;
649 case TIMELIB_SECOND: s->time->relative.s += amount * relunit->multiplier; break;
650 case TIMELIB_MINUTE: s->time->relative.i += amount * relunit->multiplier; break;
651 case TIMELIB_HOUR: s->time->relative.h += amount * relunit->multiplier; break;
652 case TIMELIB_DAY: s->time->relative.d += amount * relunit->multiplier; break;
653 case TIMELIB_MONTH: s->time->relative.m += amount * relunit->multiplier; break;
654 case TIMELIB_YEAR: s->time->relative.y += amount * relunit->multiplier; break;
659 s->time->relative.d += (amount > 0 ? amount - 1 : amount) * 7;
660 s->time->relative.weekday = relunit->multiplier;
661 s->time->relative.weekday_behavior = behavior;
667 s->time->relative.special.type = relunit->multiplier;
668 s->time->relative.special.amount = amount;
1008 relative = relnumber space? (reltextunit | 'week' );
1025 s->time->relative.d = -1;
1068 s->time->relative.d = 1;
1089 s->time->relative.s += i;
1116 s->time->relative.s += i;
1117 s->time->relative.us = us;
1135 s->time->relative.first_last_day_of = TIMELIB_SPECIAL_LAST_DAY_OF_MONTH;
1137 s->time->relative.first_last_day_of = TIMELIB_SPECIAL_FIRST_DAY_OF_MONTH;
1179 s->time->relative.special.type = TIMELIB_SPECIAL_DAY_OF_WEEK_IN_MONTH;
1182 s->time->relative.special.type = TIMELIB_SPECIAL_LAST_DAY_OF_WEEK_IN_MONTH;
1548 s->time->relative.d = timelib_daynr_from_weeknr(s->time->y, w, d);
1567 s->time->relative.d = timelib_daynr_from_weeknr(s->time->y, w, d);
1635 s->time->relative.y = 0 - s->time->relative.y;
1636 s->time->relative.m = 0 - s->time->relative.m;
1637 s->time->relative.d = 0 - s->time->relative.d;
1638 s->time->relative.h = 0 - s->time->relative.h;
1639 s->time->relative.i = 0 - s->time->relative.i;
1640 s->time->relative.s = 0 - s->time->relative.s;
1641 s->time->relative.weekday = 0 - s->time->relative.weekday;
1642 if (s->time->relative.weekday == 0) {
1643 s->time->relative.weekday = -7;
1645 …if (s->time->relative.have_special_relative && s->time->relative.special.type == TIMELIB_SPECIAL_W…
1646 s->time->relative.special.amount = 0 - s->time->relative.special.amount;
1661 s->time->relative.weekday = relunit->multiplier;
1662 if (s->time->relative.weekday_behavior != 2) {
1663 s->time->relative.weekday_behavior = 1;
1682 s->time->relative.weekday_behavior = 2;
1685 if (s->time->relative.have_weekday_relative == 0) {
1687 s->time->relative.weekday = 1;
1789 relative
1792 DEBUG_OUTPUT("relative");
1879 in.time->relative.days = TIMELIB_UNSET;
2095 in.time->relative.have_weekday_relative = 1;
2096 in.time->relative.weekday = tmprel->multiplier;
2097 in.time->relative.weekday_behavior = 1;
2247 s->time->relative.s += tmp;
2506 …time.relative.y, time.relative.m, time.relative.d, time.relative.h, time.relative.i, time.relative…
2509 printf (" / %d", time.relative.weekday);
2512 printf(" / %dW%d", time.relative.weeknr_day.weeknr, time.relative.weeknr_day.dayofweek);