Lines Matching refs:cur_year
43 timelib_sll cur_year = 1970; in timelib_unixtime2gmt() local
60 cur_year += YEARS_PER_LYEAR_PERIOD * (tmp_days / DAYS_PER_LYEAR_PERIOD); in timelib_unixtime2gmt()
65 cur_year++; in timelib_unixtime2gmt()
66 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
86 cur_year -= 4000; in timelib_unixtime2gmt()
87 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
90 cur_year--; in timelib_unixtime2gmt()
91 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
92 if (timelib_is_leap(cur_year)) { in timelib_unixtime2gmt()
101 TIMELIB_DEBUG(printf("tmp_days=%lld, year=%lld\n", tmp_days, cur_year);); in timelib_unixtime2gmt()
103 months = timelib_is_leap(cur_year) ? month_tab_leap : month_tab; in timelib_unixtime2gmt()
104 if (timelib_is_leap(cur_year) && cur_year < 1970) { in timelib_unixtime2gmt()
115 …TIMELIB_DEBUG(printf("A: ts=%lld, year=%lld, month=%lld, day=%lld,", ts, cur_year, i + 1, tmp_days… in timelib_unixtime2gmt()
123 tm->y = cur_year; in timelib_unixtime2gmt()