Lines Matching refs:tmp_days
46 timelib_sll days, remainder, tmp_days; in timelib_unixtime2gmt() local
61 tmp_days = days + 1; in timelib_unixtime2gmt()
63 if (tmp_days >= DAYS_PER_LYEAR_PERIOD || tmp_days <= -DAYS_PER_LYEAR_PERIOD) { in timelib_unixtime2gmt()
64 cur_year += YEARS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
65 tmp_days -= DAYS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
68 while (tmp_days >= DAYS_PER_LYEAR) { in timelib_unixtime2gmt()
71 tmp_days -= DAYS_PER_LYEAR; in timelib_unixtime2gmt()
73 tmp_days -= DAYS_PER_YEAR; in timelib_unixtime2gmt()
77 tmp_days = days; in timelib_unixtime2gmt()
88 while (tmp_days <= 0) { in timelib_unixtime2gmt()
89 if (tmp_days < -1460970) { in timelib_unixtime2gmt()
91 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
92 tmp_days += 1460970; in timelib_unixtime2gmt()
95 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
97 tmp_days += DAYS_PER_LYEAR; in timelib_unixtime2gmt()
99 tmp_days += DAYS_PER_YEAR; in timelib_unixtime2gmt()
105 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
109 tmp_days--; in timelib_unixtime2gmt()
114 if (tmp_days > months[i]) { in timelib_unixtime2gmt()
119 …TIMELIB_DEBUG(printf("A: ts=%lld, year=%lld, month=%lld, day=%lld,", ts, cur_year, i + 1, tmp_days… in timelib_unixtime2gmt()
129 tm->d = tmp_days - months[i]; in timelib_unixtime2gmt()