Lines Matching defs:month
31 #define MON_WIDE 4 /* width of a month-name */
34 #define HDR_HIGH 1 /* height of cells with month/year */
37 /* two more lines: titles for day-of-week and month/year boxes */
150 int month = current->tm_mon + offset;
153 while (month < 0) {
154 month += 12;
157 while (month >= 12) {
158 month -= 12;
161 result = nominal[month];
162 if (month == 1)
213 * Draw the day-of-month selection box
290 * Draw the month-of-year selection box
295 int month;
297 month = current->tm_mon + 1;
307 (void) wattrset(data->window, item_attr); /* color the month selection */
308 mvwprintw(data->window, 0, 0, "%s", nameOfMonth(month - 1));
392 int month,
455 if (month < 0)
456 month = current.tm_mon + 1;
460 /* compute a struct tm that matches the day/month/year parameters */
468 } else if (month > current.tm_mon + 1) {
470 } else if (month < current.tm_mon + 1) {
507 /* compute positions of day, month and year boxes */