Lines Matching refs:year
34 #define HDR_HIGH 1 /* height of cells with month/year */
37 /* two more lines: titles for day-of-week and month/year boxes */
149 int year = current->tm_year;
155 year -= 1;
159 year += 1;
163 result += ((year % 4) == 0);
170 int year = current->tm_year + 1900 + offset;
172 return ((year % 4) == 0) ? 366 : 365;
290 * Draw the month-of-year selection box
314 * Draw the year selection box
319 int year = current->tm_year + 1900;
329 (void) wattrset(data->window, item_attr); /* color the year selection */
330 mvwprintw(data->window, 0, 0, "%4d", year);
393 int year)
457 if (year < 0)
458 year = current.tm_year + 1900;
460 /* compute a struct tm that matches the day/month/year parameters */
461 if (((year -= 1900) > 0) && (year < 200)) {
464 if (year > current.tm_year) {
466 } else if (year < current.tm_year) {
507 /* compute positions of day, month and year boxes */