Lines Matching defs:year
63 static time_t hs_date_to_gmtime(int year, int mon, int day, int gmtoff);
164 int year, month, day, hour, minute, sec, gmtoff;
166 year = HDE_DATE_YEAR(dp);
175 if (year < THE_EPOCH) {
178 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
201 int year, month, day, hour, minute, sec, gmtoff;
203 year = HSV_DATE_YEAR(dp);
212 if (year < THE_EPOCH) {
215 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
224 /* cumulative number of seconds per month, non-leap and leap-year versions */
239 * Convert year(1970-2099)/month(1-12)/day(1-31) to seconds-since-1970/1/1.
244 hs_date_to_gmtime(year, mon, day, gmtoff)
245 int year;
254 if ((year < THE_EPOCH) || (year > END_OF_TIME) ||
260 * Figure seconds until this year and correct for leap years.
261 * Note: 2000 is a leap year but not 2100.
263 y = year - THE_EPOCH;
267 * Point to the correct table for this year and