Lines Matching defs:month
30 #define MAXDAYS 42 /* max slots in a month array */
84 unsigned month, year, flags, i;
91 month = 0;
104 month = local_time->tm_mon + 1;
108 month = xatou_range(*argv++, 1, 12);
128 if (month) {
133 day_array(month, year, dp);
134 len = sprintf(lineout, "%s %d", month_names[month - 1], year);
160 for (month = 0; month < 12; month += 3-julian) {
161 center(month_names[month], week_len, HEAD_SEP);
163 center(month_names[month + 1], week_len, HEAD_SEP);
165 center(month_names[month + 2 - julian], week_len, 0);
173 dp = days[month + which_cal] + row;
190 * builds that array for any month from Jan. 1 through Dec. 9999.
192 static void day_array(unsigned month, unsigned year, unsigned *days)
200 if ((month == 9) && (year == 1752)) {
218 if ((month > 2) && leap_year(year)) {
222 i = month;
244 dm = days_in_month[month];
245 if ((month == 2) && leap_year(year)) {