Lines Matching refs:year
415 static timelib_sll calc_transition(timelib_posix_trans_info *psi, timelib_sll year) in calc_transition() argument
417 int leap_year = timelib_is_leap(year); in calc_transition()
445 yy0 = (psi->mwd.month <= 2) ? (year - 1) : year; in calc_transition()
488 timelib_sll timelib_ts_at_start_of_year(timelib_sll year) in timelib_ts_at_start_of_year() argument
491 timelib_sll current_leap_years = count_leap_years(year); in timelib_ts_at_start_of_year()
494 ((year-1970) * DAYS_PER_YEAR) in timelib_ts_at_start_of_year()
500 void timelib_get_transitions_for_year(timelib_tzinfo *tz, timelib_sll year, timelib_posix_transitio… in timelib_get_transitions_for_year() argument
504 timelib_sll year_begin_ts = timelib_ts_at_start_of_year(year); in timelib_get_transitions_for_year()
507 trans_begin += calc_transition(tz->posix_info->dst_begin, year); in timelib_get_transitions_for_year()
512 trans_end += calc_transition(tz->posix_info->dst_end, year); in timelib_get_transitions_for_year()
533 timelib_sll year; in timelib_fetch_posix_timezone_offset() local
549 year = dummy.y; in timelib_fetch_posix_timezone_offset()
552 timelib_get_transitions_for_year(tz, year - 1, &transitions); in timelib_fetch_posix_timezone_offset()
553 timelib_get_transitions_for_year(tz, year, &transitions); in timelib_fetch_posix_timezone_offset()
554 timelib_get_transitions_for_year(tz, year + 1, &transitions); in timelib_fetch_posix_timezone_offset()