Lines Matching full:tm
45 struct lc_time_T tm; variable
50 (void) memset(&tm, 0, sizeof (tm)); in init_time()
66 tm.c_fmt = str; in add_time_str()
69 tm.x_fmt = str; in add_time_str()
72 tm.X_fmt = str; in add_time_str()
75 tm.ampm_fmt = str; in add_time_str()
82 tm.date_fmt = str; in add_time_str()
123 add_list(tm.mon, str, 12); in add_time_list()
126 add_list(tm.month, str, 12); in add_time_list()
129 add_list(tm.wday, str, 7); in add_time_list()
132 add_list(tm.weekday, str, 7); in add_time_list()
135 if (tm.am == NULL) { in add_time_list()
136 tm.am = str; in add_time_list()
137 } else if (tm.pm == NULL) { in add_time_list()
138 tm.pm = str; in add_time_list()
160 if (tm.mon[11] != NULL) in check_time_list()
164 if (tm.month[11] != NULL) in check_time_list()
168 if (tm.wday[6] != NULL) in check_time_list()
172 if (tm.weekday[6] != NULL) in check_time_list()
176 if (tm.pm != NULL) in check_time_list()
197 free((char *)tm.mon[i]); in reset_time_list()
198 tm.mon[i] = NULL; in reset_time_list()
203 free((char *)tm.month[i]); in reset_time_list()
204 tm.month[i] = NULL; in reset_time_list()
209 free((char *)tm.wday[i]); in reset_time_list()
210 tm.wday[i] = NULL; in reset_time_list()
215 free((char *)tm.weekday[i]); in reset_time_list()
216 tm.weekday[i] = NULL; in reset_time_list()
220 free((char *)tm.am); in reset_time_list()
221 tm.am = NULL; in reset_time_list()
222 free((char *)tm.pm); in reset_time_list()
223 tm.pm = NULL; in reset_time_list()
239 if (putl_category(tm.mon[i], f) == EOF) { in dump_time()
244 if (putl_category(tm.month[i], f) == EOF) { in dump_time()
249 if (putl_category(tm.wday[i], f) == EOF) { in dump_time()
254 if (putl_category(tm.weekday[i], f) == EOF) { in dump_time()
265 if ((putl_category(tm.X_fmt, f) == EOF) || in dump_time()
266 (putl_category(tm.x_fmt, f) == EOF) || in dump_time()
267 (putl_category(tm.c_fmt, f) == EOF) || in dump_time()
268 (putl_category(tm.am, f) == EOF) || in dump_time()
269 (putl_category(tm.pm, f) == EOF) || in dump_time()
270 (putl_category(tm.date_fmt ? tm.date_fmt : tm.c_fmt, f) == EOF) || in dump_time()
271 (putl_category(tm.ampm_fmt, f) == EOF)) { in dump_time()