Lines Matching refs:iw
93 void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iw, timeli… in timelib_isoweek_from_date() argument
111 *iw = 53; in timelib_isoweek_from_date()
113 *iw = 52; in timelib_isoweek_from_date()
125 *iw = 1; in timelib_isoweek_from_date()
134 *iw = j / 7; in timelib_isoweek_from_date()
136 *iw -= 1; in timelib_isoweek_from_date()
141 …ate(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iy, timelib_sll *iw, timelib_sll *id) in timelib_isodate_from_date() argument
143 timelib_isoweek_from_date(y, m, d, iw, iy); in timelib_isodate_from_date()
147 static timelib_sll timelib_daynr_from_weeknr_ex(timelib_sll iy, timelib_sll iw, timelib_sll id, tim… in timelib_daynr_from_weeknr_ex() argument
156 *y = (iw == 1 && day < 0 && id < dow) ? iy - 1 : iy; in timelib_daynr_from_weeknr_ex()
159 return day + ((iw - 1) * 7) + id; in timelib_daynr_from_weeknr_ex()
162 timelib_sll timelib_daynr_from_weeknr(timelib_sll iy, timelib_sll iw, timelib_sll id) in timelib_daynr_from_weeknr() argument
166 return timelib_daynr_from_weeknr_ex(iy, iw, id, &dummy_iso_year); in timelib_daynr_from_weeknr()
169 void timelib_date_from_isodate(timelib_sll iy, timelib_sll iw, timelib_sll id, timelib_sll *y, time… in timelib_date_from_isodate() argument
171 timelib_sll daynr = timelib_daynr_from_weeknr_ex(iy, iw, id, y) + 1; in timelib_date_from_isodate()