Lines Matching full:month
43 static void cal(int32_t month, int32_t year,
115 int32_t month = -1, year = -1;
152 /* Get the month and year to display, if specified */
155 /* Month and year specified */
157 sscanf(argv[optind], "%d", (int*)&month);
160 /* Make sure the month value is legal */
161 if(month < 0 || month > 12) {
162 printf("icucal: Bad value for month -- %d\n", (int)month);
169 --month;
190 cal(month, year, useLongNames, &status);
202 puts("Usage: icucal [OPTIONS] [[MONTH] YEAR]");
210 puts(" MONTH An integer (1-12) indicating the month to display");
226 cal(int32_t month,
241 /* Determine if we are printing a calendar for one month or for a year */
244 if(month == -1 && year != -1) {
256 /* Print only one month */
259 /* Set the month and the year, if specified */
260 if(month != -1)
261 ucal_set(c, UCAL_MONTH, month);
268 /* Print the calendar for the month */
355 /* Get the month names for the specified locale, in either long or
416 /* Print out a calendar for c's current month */
436 /* ========== Generate the header containing the month and year */
438 /* Open a formatter with a month and year only pattern */
472 /* Get the first of the month */
476 /* The day of the week for the first day of the month is based on
561 /* Open a formatter with a month and year only pattern */
567 /* ========== Get the month and day names */
600 /* Print the month names for the two current months */
625 /* The day of the week for the first day of the month is based on
633 month is a 1 = Sunday, we want firstday to be 6, not -1 */
652 /* If the left month is finished printing, but the right month
688 /* Determine the month */
692 the next month */
699 days at the end of the month */
736 /* Determine the month */