struct tm * start = (struct tm*)malloc(sizeof(struct tm));
struct tm * end = (struct tm*)malloc(sizeof(struct tm));