164:                 case 'E':     /* "%E?" alternative conversion modifier. */
165:                         _LEGAL_ALT(0);
166:                         alt_format |= _ALT_E;
169:                 case 'O':     /* "%O?" alternative conversion modifier. */
170:                         _LEGAL_ALT(0);
171:                         alt_format |= _ALT_O;
177:                 case 'c':     /* Date and time, using the locale's format. */
178:                         _LEGAL_ALT(_ALT_E);
179:                         if (!(bp = (unsigned char*)_strptime((char*)bp, _ctloc(d_t_fmt), tm, 0)))
183:                 case 'D':     /* The date as "%m/%d/%y". */
184:                         _LEGAL_ALT(0);
185:                         if (!(bp = (unsigned char*)_strptime((char*)bp, "%m/%d/%y", tm, 0)))
189:                 case 'F':     /* The date as "%Y-%m-%d". */
190:                         _LEGAL_ALT(0);
191:                         if (!(bp =(unsigned char*) _strptime((char*)bp, "%Y-%m-%d", tm, 0)))
195:                 case 'R':     /* The time as "%H:%M". */
196:                         _LEGAL_ALT(0);
197:                         if (!(bp = (unsigned char*)_strptime((char*)bp, "%H:%M", tm, 0)))
201:                 case 'r':     /* The time as "%I:%M:%S %p". */
202:                         _LEGAL_ALT(0);
203:                         if (!(bp =(unsigned char*) _strptime((char*)bp, "%I:%M:%S %p", tm, 0)))
207:                 case 'T':     /* The time as "%H:%M:%S". */
208:                         _LEGAL_ALT(0);
209:                         if (!(bp = (unsigned char*)_strptime((char*)bp, "%H:%M:%S", tm, 0)))
213:                 case 'X':     /* The time, using the locale's format. */
214:                         _LEGAL_ALT(_ALT_E);
215:                         if (!(bp = (unsigned char*)_strptime((char*)bp, _ctloc(t_fmt), tm, 0)))
219:                 case 'x':     /* The date, using the locale's format. */
220:                         _LEGAL_ALT(_ALT_E);
221:                         if (!(bp = (unsigned char*)_strptime((char*)bp, _ctloc(d_fmt), tm, 0)))
229:                 case 'a':
230:                         _LEGAL_ALT(0);
231:                         for (i = 0; i < 7; i++) {
254:                 case 'h':
255:                         _LEGAL_ALT(0);
256:                         for (i = 0; i < 12; i++) {
277:                 case 'C':     /* The century number. */
278:                         _LEGAL_ALT(_ALT_E);
279:                         if (!(_conv_num(&bp, &i, 0, 99)))
286:                 case 'e':
287:                         _LEGAL_ALT(_ALT_O);
288:                         if (!(_conv_num(&bp, &tm->tm_mday, 1, 31)))
293:                 case 'k':     /* The hour (24-hour clock representation). */
294:                         _LEGAL_ALT(0);
295:                         /* FALLTHROUGH */
296:                 case 'H':
297:                         _LEGAL_ALT(_ALT_O);
298:                         if (!(_conv_num(&bp, &tm->tm_hour, 0, 23)))
302:                 case 'l':     /* The hour (12-hour clock representation). */
303:                         _LEGAL_ALT(0);
304:                         /* FALLTHROUGH */
305:                 case 'I':
306:                         _LEGAL_ALT(_ALT_O);
307:                         if (!(_conv_num(&bp, &tm->tm_hour, 1, 12)))
311:                 case 'j':     /* The day of year. */
312:                         _LEGAL_ALT(0);
313:                         if (!(_conv_num(&bp, &tm->tm_yday, 1, 366)))
319:                 case 'M':     /* The minute. */
320:                         _LEGAL_ALT(_ALT_O);
321:                         if (!(_conv_num(&bp, &tm->tm_min, 0, 59)))
325:                 case 'm':     /* The month. */
326:                         _LEGAL_ALT(_ALT_O);
327:                         if (!(_conv_num(&bp, &tm->tm_mon, 1, 12)))
333:                 case 'p':     /* The locale's equivalent of AM/PM. */
334:                         _LEGAL_ALT(0);
335:                         /* AM? */
361:                 case 'S':     /* The seconds. */
362:                         _LEGAL_ALT(_ALT_O);
363:                         if (!(_conv_num(&bp, &tm->tm_sec, 0, 61)))
368:                 case 'W':     /* The week of year, beginning on monday. */
369:                         _LEGAL_ALT(_ALT_O);
370:                         /*
380:                 case 'w':     /* The day of week, beginning on sunday. */
381:                         _LEGAL_ALT(_ALT_O);
382:                         if (!(_conv_num(&bp, &tm->tm_wday, 0, 6)))
387:                 case 'u':     /* The day of week, monday = 1. */
388:                         _LEGAL_ALT(_ALT_O);
389:                         if (!(_conv_num(&bp, &i, 1, 7)))
415:                 case 'Y':     /* The year. */
416:                         _LEGAL_ALT(_ALT_E);
417:                         if (!(_conv_num(&bp, &i, 0, 9999)))
428:                 case 'y':     /* The year within the century (2 digits). */
429:                         _LEGAL_ALT(_ALT_E | _ALT_O);
430:                         if (!(_conv_num(&bp, &relyear, 0, 99)))
595:                 case 't':
596:                         _LEGAL_ALT(0);
597:                         while (isspace(*bp))