Lines Matching defs:format

36  * format n with padding p into s
88 char* format;
93 * format t into buf of length len
98 tmxfmt(char* buf, size_t len, const char* format, Time_t t)
127 if (!format || !*format)
128 format = tm_info.deformat;
129 oformat = format;
137 if ((c = *format++) == delimiter)
143 format = sp->format;
161 switch (c = *format++)
169 if (!isalpha(*format))
211 if (!(c = *format++))
213 format--;
234 format--;
241 if (tm_info.deformat != tm_info.format[TM_DEFAULT])
242 format = tm_info.deformat;
243 else if (!*format)
244 format = tm_info.format[TM_DEFAULT];
260 p = tm_info.format[TM_CTIME];
269 p = tm_info.format[TM_DATE];
277 case 'F': /* ISO 8601:2000 standard date format */
363 p = tm_info.format[TM_MERIDIAN + (tm->tm_hour >= 12)];
371 if (c = *format)
373 format++;
379 p = tm_info.format[TM_DISTANT];
382 p = tm_info.format[TM_DATE_1];
388 p = tm_info.format[TM_INTERNATIONAL];
391 p = tm_info.format[TM_DEFAULT];
399 p = tm_info.format[TM_DISTANT];
403 p = tm_info.format[TM_RECENT];
469 p = tm_info.format[TM_RECENT];
483 format--;
492 p = warped(t, now) ? (char*)0 : (char*)format;
495 p = (char*)format;
497 while (n = *format)
499 format++;
503 p = (char*)format;
512 p = tm_info.format[TM_MERIDIAN_TIME];
538 if ((flags & TM_SUBSECOND) && (format - 2) != oformat)
549 p = tm_info.format[TM_TIME];
573 p = tm_info.format[TM_DATE];
576 p = tm_info.format[TM_TIME];
601 p = (flags & TM_UTC) ? tm_info.format[TM_UT] : tm->tm_isdst && tm->tm_zone->daylight ? tm->tm_zone->daylight : tm->tm_zone->standard;
604 for (arg = argbuf; *format == '=' || *format == '-' || *format == '+' || *format == '!'; format++)
606 *arg++ = *format;
607 if (*arg++ = *format)
608 format++;
620 p = tm_info.format[n];
690 sp->format = (char*)format;
691 format = p;