Home | History | Annotate | Download | only in cal

Lines Matching defs:month

47 static void cal(int32_t month, int32_t year,
119 int32_t month = -1, year = -1;
156 /* Get the month and year to display, if specified */
159 /* Month and year specified */
161 sscanf(argv[optInd], "%d", (int*)&month);
164 /* Make sure the month value is legal */
165 if(month < 0 || month > 12) {
166 printf("icucal: Bad value for month -- %d\n", (int)month);
173 --month;
194 cal(month, year, useLongNames, &status);
206 puts("Usage: icucal [OPTIONS] [[MONTH] YEAR]");
214 puts(" MONTH An integer (1-12) indicating the month to display");
230 cal(int32_t month,
245 /* Determine if we are printing a calendar for one month or for a year */
248 if(month == -1 && year != -1) {
260 /* Print only one month */
263 /* Set the month and the year, if specified */
264 if(month != -1)
265 ucal_set(c, UCAL_MONTH, month);
272 /* Print the calendar for the month */
359 /* Get the month names for the specified locale, in either long or
420 /* Print out a calendar for c's current month */
440 /* ========== Generate the header containing the month and year */
442 /* Open a formatter with a month and year only pattern */
476 /* Get the first of the month */
480 /* The day of the week for the first day of the month is based on
565 /* Open a formatter with a month and year only pattern */
571 /* ========== Get the month and day names */
604 /* Print the month names for the two current months */
629 /* The day of the week for the first day of the month is based on
637 month is a 1 = Sunday, we want firstday to be 6, not -1 */
656 /* If the left month is finished printing, but the right month
692 /* Determine the month */
696 the next month */
703 days at the end of the month */
740 /* Determine the month */