| 90 | } |
| 91 | |
| 92 | int msDateCompare(struct tm *time1, struct tm *time2) |
| 93 | { |
| 94 | int result; |
| 95 | |
| 96 | if((result = compareIntVals(time1->tm_year, time2->tm_year)) != 0) |
| 97 | return result; /* not equal based on year */ |
| 98 | else if((result = compareIntVals(time1->tm_mon, time2->tm_mon)) != 0) |
| 99 | return result; /* not equal based on month */ |
| 100 | else if((result = compareIntVals(time1->tm_mday, time2->tm_mday)) != 0) |
| 101 | return result; /* not equal based on day of month */ |
| 102 | |
| 103 | return(0); /* must be equal */ |
| 104 | } |
| 105 | |
| 106 | int msTimeCompare(struct tm *time1, struct tm *time2) |
| 107 | { |
no test coverage detected