version 1.62, 2009/02/15 12:55:18 |
version 1.63, 2010/07/23 21:46:05 |
|
|
|
|
if (last == NULL) { |
if (last == NULL) { |
flags |= RLOG_DATE_SINGLE; |
flags |= RLOG_DATE_SINGLE; |
firstdate = rcs_date_parse(first); |
firstdate = date_parse(first); |
delim = '\0'; |
delim = '\0'; |
last = "\0"; |
last = "\0"; |
} else { |
} else { |
|
|
|
|
if (delim == '>' && *last == '\0') { |
if (delim == '>' && *last == '\0') { |
flags |= RLOG_DATE_EARLIER; |
flags |= RLOG_DATE_EARLIER; |
firstdate = rcs_date_parse(first); |
firstdate = date_parse(first); |
} |
} |
|
|
if (delim == '>' && *first == '\0' && *last != '\0') { |
if (delim == '>' && *first == '\0' && *last != '\0') { |
flags |= RLOG_DATE_LATER; |
flags |= RLOG_DATE_LATER; |
firstdate = rcs_date_parse(last); |
firstdate = date_parse(last); |
} |
} |
|
|
if (delim == '<' && *last == '\0') { |
if (delim == '<' && *last == '\0') { |
flags |= RLOG_DATE_LATER; |
flags |= RLOG_DATE_LATER; |
firstdate = rcs_date_parse(first); |
firstdate = date_parse(first); |
} |
} |
|
|
if (delim == '<' && *first == '\0' && *last != '\0') { |
if (delim == '<' && *first == '\0' && *last != '\0') { |
flags |= RLOG_DATE_EARLIER; |
flags |= RLOG_DATE_EARLIER; |
firstdate = rcs_date_parse(last); |
firstdate = date_parse(last); |
} |
} |
|
|
if (*first != '\0' && *last != '\0') { |
if (*first != '\0' && *last != '\0') { |
flags |= RLOG_DATE_RANGE; |
flags |= RLOG_DATE_RANGE; |
|
|
if (delim == '<') { |
if (delim == '<') { |
firstdate = rcs_date_parse(first); |
firstdate = date_parse(first); |
lastdate = rcs_date_parse(last); |
lastdate = date_parse(last); |
} else { |
} else { |
firstdate = rcs_date_parse(last); |
firstdate = date_parse(last); |
lastdate = rcs_date_parse(first); |
lastdate = date_parse(first); |
} |
} |
} |
} |
|
|