parseDWM
pres = parseDWM(ptime, str);
static int parseDWM(struct ptime_data *ptime, const char *str);