timeprd
int timeprd(const char *, time_t *);
if (timeprd(t, &grace) != 0) {
if (timeprd(str, &graceb) != 0)
if (timeprd(grace, &gracei) != 0)