Lines Matching refs:t
99 timelib_time *t = timelib_time_clone(old_time); in timelib_add() local
102 memcpy(&t->relative, interval, sizeof(struct timelib_rel_time)); in timelib_add()
107 memset(&t->relative, 0, sizeof(struct timelib_rel_time)); in timelib_add()
108 t->relative.y = interval->y * bias; in timelib_add()
109 t->relative.m = interval->m * bias; in timelib_add()
110 t->relative.d = interval->d * bias; in timelib_add()
111 t->relative.h = interval->h * bias; in timelib_add()
112 t->relative.i = interval->i * bias; in timelib_add()
113 t->relative.s = interval->s * bias; in timelib_add()
114 t->relative.f = interval->f * bias; in timelib_add()
116 t->have_relative = 1; in timelib_add()
117 t->sse_uptodate = 0; in timelib_add()
119 timelib_update_ts(t, NULL); in timelib_add()
123 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_add()
124 t->sse -= old_time->z; in timelib_add()
125 t->sse += t->z; in timelib_add()
128 timelib_update_from_sse(t); in timelib_add()
129 t->have_relative = 0; in timelib_add()
131 return t; in timelib_add()
137 timelib_time *t = timelib_time_clone(old_time); in timelib_sub() local
143 memset(&t->relative, 0, sizeof(struct timelib_rel_time)); in timelib_sub()
144 t->relative.y = 0 - (interval->y * bias); in timelib_sub()
145 t->relative.m = 0 - (interval->m * bias); in timelib_sub()
146 t->relative.d = 0 - (interval->d * bias); in timelib_sub()
147 t->relative.h = 0 - (interval->h * bias); in timelib_sub()
148 t->relative.i = 0 - (interval->i * bias); in timelib_sub()
149 t->relative.s = 0 - (interval->s * bias); in timelib_sub()
150 t->relative.f = 0 - (interval->f * bias); in timelib_sub()
151 t->have_relative = 1; in timelib_sub()
152 t->sse_uptodate = 0; in timelib_sub()
154 timelib_update_ts(t, NULL); in timelib_sub()
157 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_sub()
158 t->sse -= old_time->z; in timelib_sub()
159 t->sse += t->z; in timelib_sub()
162 if (old_time->dst == 0 && t->dst == 1 && !interval->y && !interval->m && !interval->d ) { in timelib_sub()
163 t->sse -= old_time->z; in timelib_sub()
164 t->sse += t->z; in timelib_sub()
167 timelib_update_from_sse(t); in timelib_sub()
169 t->have_relative = 0; in timelib_sub()
171 return t; in timelib_sub()