static Time_t convert(register Fmt_t* f, char* s, Time_t now) { char* t; char* u; do { now = tmxscan(s, &t, f->format, &u, now, 0); if (!*t && (!f->format || !*u)) break; } while (f = f->next); if (!f || *t) error(3, "%s: invalid date specification", f ? t : s); return now; }
time_t tmscan(const char* s, char** e, const char* format, char** f, time_t* clock, long flags) { return tmxsec(tmxscan(s, e, format, f, tmxclock(clock), flags)); }