dates.c (mairix-0.23) | : | dates.c (mairix-0.24) | ||
---|---|---|---|---|
skipping to change at line 339 | skipping to change at line 339 | |||
*has_start = *has_end = 0; | *has_start = *has_end = 0; | |||
nullchar = in; | nullchar = in; | |||
while (*nullchar) nullchar++; | while (*nullchar) nullchar++; | |||
time(&now); | time(&now); | |||
start_tm = end_tm = *localtime(&now); | start_tm = end_tm = *localtime(&now); | |||
start_tm.tm_hour = 0; | start_tm.tm_hour = 0; | |||
start_tm.tm_min = 0; | start_tm.tm_min = 0; | |||
start_tm.tm_sec = 0; | start_tm.tm_sec = 0; | |||
start_tm.tm_isdst = -1; | ||||
end_tm.tm_hour = 23; | end_tm.tm_hour = 23; | |||
end_tm.tm_min = 59; | end_tm.tm_min = 59; | |||
end_tm.tm_sec = 59; | end_tm.tm_sec = 59; | |||
end_tm.tm_isdst = -1; | ||||
hyphen = strchr(in, '-'); | hyphen = strchr(in, '-'); | |||
if (!hyphen) { | if (!hyphen) { | |||
/* Start and end are the same. */ | /* Start and end are the same. */ | |||
*has_start = *has_end = 1; | *has_start = *has_end = 1; | |||
status = scan_date_expr(in, nullchar, &start_tm, &end_tm); | status = scan_date_expr(in, nullchar, &start_tm, &end_tm); | |||
if (status) return status; | if (status) return status; | |||
*start = mktime(&start_tm); | *start = mktime(&start_tm); | |||
*end = mktime(&end_tm); | *end = mktime(&end_tm); | |||
return 0; | return 0; | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |