MCPcopy Index your code
hub / github.com/MapServer/MapServer / msDateCompare

Function msDateCompare

maptime.c:92–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92int 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
106int msTimeCompare(struct tm *time1, struct tm *time2)
107{

Callers 1

Calls 1

compareIntValsFunction · 0.85

Tested by

no test coverage detected