Lines Matching refs:cur_year
47 timelib_sll cur_year = 1970; in timelib_unixtime2gmt() local
64 cur_year += YEARS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
69 cur_year++; in timelib_unixtime2gmt()
70 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
90 cur_year -= 4000; in timelib_unixtime2gmt()
91 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
94 cur_year--; in timelib_unixtime2gmt()
95 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
96 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
105 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
107 months = timelib_is_leap(cur_year) ? month_tab_leap : month_tab; in timelib_unixtime2gmt()
108 if (timelib_is_leap(cur_year) && cur_year < 1970) { 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()
127 tm->y = cur_year; in timelib_unixtime2gmt()