if (fmt != NULL) {
lt = localtime(&tval);
lt->tm_mday = 1;
t = strptime(p, fmt, lt);
if (t == NULL) {
fprintf(stderr, "Failed conversion of ``%s''"