Lines Matching refs:month

182 adjust_year_month(int *year, int *month)  in adjust_year_month()  argument
184 while (*month < 0) { in adjust_year_month()
185 *month += MAX_MONTHS; in adjust_year_month()
188 while (*month >= MAX_MONTHS) { in adjust_year_month()
189 *month -= MAX_MONTHS; in adjust_year_month()
195 days_per_month(int year, int month) in days_per_month() argument
204 adjust_year_month(&year, &month); in days_per_month()
205 result = nominal[month]; in days_per_month()
206 if (month == 1) in days_per_month()
215 int month = current->tm_mon + offset; in days_in_month() local
217 adjust_year_month(&year, &month); in days_in_month()
218 return days_per_month(year, month); in days_in_month()
254 day_in_year(int year, int month, int day) in day_in_year() argument
257 while (--month >= 1) in day_in_year()
258 result += days_per_month(year, month); in day_in_year()
263 iso_week(int year, int month, int day) in iso_week() argument
273 diy = day_in_year(year, month, day); in iso_week()
277 dow = day_of_week(year, month, day); in iso_week()
310 getisoweeks(int year, int month) in getisoweeks() argument
315 int dpm = days_per_month(year, month); in getisoweeks()
318 result[windx++] = iso_week(year, month, day); in getisoweeks()
325 result[windx] = iso_week(year, month, dpm); in getisoweeks()
458 int month; in draw_month() local
460 month = current->tm_mon + 1; in draw_month()
471 mvwprintw(data->window, 0, 0, "%s", nameOfMonth(month - 1)); in draw_month()
677 int month, in dialog_calendar() argument
737 DLG_TRACE2N("month", month); in dialog_calendar()
756 if (month >= 1) { in dialog_calendar()
757 current.tm_mon = month - 1; in dialog_calendar()
767 if (month < 0) in dialog_calendar()
768 month = current.tm_mon + 1; in dialog_calendar()
780 } else if (month > current.tm_mon + 1) { in dialog_calendar()
782 } else if (month < current.tm_mon + 1) { in dialog_calendar()