Lines Matching defs:day
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;
168 day = HDE_DATE_DAY(dp);
178 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
201 int year, month, day, hour, minute, sec, gmtoff;
205 day = HSV_DATE_DAY(dp);
215 tvp->tv_sec = hs_date_to_gmtime(year, month, day, gmtoff);
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)
247 int day;
256 (day < 1) || (day > 31))
273 * Add in seconds until 0:00 of this day.
276 sum += (day - 1) * SEC_PER_DAY;