Lines Matching defs:format
51 * ascftime(buf, format, t) -> where t is produced by localtime
54 * the format specified by the format
55 * argument (see date(1) for format
58 * cftime(buf, format, t) -> just calls ascftime.
74 cftime(char *buf, char *format, const time_t *t)
85 return (ascftime(buf, format, p));
89 ascftime(char *buf, const char *format, const struct tm *tm)
91 /* Set format string, if not already set */
92 if (format == NULL || *format == '\0')
93 if (((format = getenv("CFTIME")) == 0) || *format == 0)
94 format = "%C";
96 return ((int)strftime(buf, LONG_MAX, format, tm));