Lines Matching defs:day
49 static int holidays[NHOLIDAYS]; /* holidays file day-of-year table */
58 * prime(0) and nonprime(1) times during a day
67 int daysend[] = {0, 60, 23}; /* the sec, min, hr of the day's end */
99 while ( tcur < tend ) { /* one iteration per day or part thereof */
112 } else { /* working day, PRIME or NONPRIME */
135 * Starting day after Christmas, complain if holidays not yet updated.
192 int doy; /* day of the year */
193 int month, day;
257 /* This is the end of the day */
276 sscanf(holbuf, "%d/%d %*s %*s %*[^\n]\n", &month, &day);
282 if (day < 0 || day > 31) {
283 fprintf(stderr, "pnpsplit: invalid day %d\n", day);
287 doy = day_of_year(thisyear, month, day);
302 * assumed that t1 <= t2, and are in same day.
316 * assumed that t1 and t2 are in same day
330 /* set day of year from month and day */
333 day_of_year(year, month, day)
339 day += day_tab[leap][i];
340 return(day);