Lines Matching refs:t
103 timelib_time *t = timelib_time_clone(old_time); in timelib_add() local
106 memcpy(&t->relative, interval, sizeof(timelib_rel_time)); in timelib_add()
111 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_add()
112 t->relative.y = interval->y * bias; in timelib_add()
113 t->relative.m = interval->m * bias; in timelib_add()
114 t->relative.d = interval->d * bias; in timelib_add()
115 t->relative.h = interval->h * bias; in timelib_add()
116 t->relative.i = interval->i * bias; in timelib_add()
117 t->relative.s = interval->s * bias; in timelib_add()
118 t->relative.us = interval->us * bias; in timelib_add()
120 t->have_relative = 1; in timelib_add()
121 t->sse_uptodate = 0; in timelib_add()
123 timelib_update_ts(t, NULL); in timelib_add()
127 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_add()
128 t->sse -= old_time->z; in timelib_add()
129 t->sse += t->z; in timelib_add()
132 timelib_update_from_sse(t); in timelib_add()
133 t->have_relative = 0; in timelib_add()
135 return t; in timelib_add()
141 timelib_time *t = timelib_time_clone(old_time); in timelib_sub() local
147 memset(&t->relative, 0, sizeof(timelib_rel_time)); in timelib_sub()
148 t->relative.y = 0 - (interval->y * bias); in timelib_sub()
149 t->relative.m = 0 - (interval->m * bias); in timelib_sub()
150 t->relative.d = 0 - (interval->d * bias); in timelib_sub()
151 t->relative.h = 0 - (interval->h * bias); in timelib_sub()
152 t->relative.i = 0 - (interval->i * bias); in timelib_sub()
153 t->relative.s = 0 - (interval->s * bias); in timelib_sub()
154 t->relative.us = 0 - (interval->us * bias); in timelib_sub()
155 t->have_relative = 1; in timelib_sub()
156 t->sse_uptodate = 0; in timelib_sub()
158 timelib_update_ts(t, NULL); in timelib_sub()
161 if (old_time->dst == 1 && t->dst == 0 && !interval->y && !interval->m && !interval->d) { in timelib_sub()
162 t->sse -= old_time->z; in timelib_sub()
163 t->sse += t->z; in timelib_sub()
166 if (old_time->dst == 0 && t->dst == 1 && !interval->y && !interval->m && !interval->d ) { in timelib_sub()
167 t->sse -= old_time->z; in timelib_sub()
168 t->sse += t->z; in timelib_sub()
171 timelib_update_from_sse(t); in timelib_sub()
173 t->have_relative = 0; in timelib_sub()
175 return t; in timelib_sub()