void timelib_update_ts(timelib_time* time, timelib_tzinfo* tzi) { timelib_sll res = 0; do_adjust_relative(time); do_adjust_special(time); res += do_years(time->y); res += do_months(time->m, time->y); res += do_days(time->d); res += do_time(time->h, time->i, time->s); time->sse = res; res += do_adjust_timezone(time, tzi); time->sse = res; time->sse_uptodate = 1; }
void timelib_update_ts(timelib_time* time, timelib_tzinfo* tzi) { timelib_sll res = 0; do_adjust_special_early(time); do_adjust_relative(time); do_adjust_special(time); res += do_years(time->y); res += do_months(time->m, time->y); res += do_days(time->d); res += do_time(time->h, time->i, time->s); time->sse = res; res += do_adjust_timezone(time, tzi); time->sse = res; time->sse_uptodate = 1; time->have_relative = time->relative.have_weekday_relative = time->relative.have_special_relative = time->relative.first_last_day_of = 0; }