Lines Matching refs:cur_year
36 timelib_sll cur_year = 1970; in timelib_unixtime2gmt() local
56 cur_year += YEARS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
59 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
63 cur_year++; in timelib_unixtime2gmt()
64 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
69 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
73 cur_year--; in timelib_unixtime2gmt()
74 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
79 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
83 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
85 months = timelib_is_leap(cur_year) ? month_tab_leap : month_tab; in timelib_unixtime2gmt()
86 if (timelib_is_leap(cur_year) && cur_year < 1970) { in timelib_unixtime2gmt()
97 …TIMELIB_DEBUG(printf("A: ts=%lld, year=%lld, month=%lld, day=%lld,", ts, cur_year, i + 1, tmp_days… in timelib_unixtime2gmt()
105 tm->y = cur_year; in timelib_unixtime2gmt()