struct tm *mystrptime(const char *s)
{
static struct tm tmp;
char *p;
char work[128];

strcpy(work, s);
p = strtok(work, ".");
tmp.tm_year = atoi(p) - 1900;
p = strtok(NULL, ".");
tmp.tm_mon = atoi(p) - 1;
p = strtok(NULL, " ");
tmp.tm_mday = atoi(p);
p = strtok(NULL, ":");
tmp.tm_hour = atoi(p);
p = strtok(NULL, "");
tmp.tm_min = atoi(p);
tmp.tm_sec = 0;


return &tmp;
}