MCPcopy Create free account
hub / github.com/chen3feng/toft / Compare

Method Compare

system/time/date.cpp:283–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281}
282
283int Date::Compare(const Date& lhs, const Date& rhs) {
284 if (lhs.m_year > rhs.m_year)
285 return 1;
286 if (lhs.m_year < rhs.m_year)
287 return -1;
288 if (lhs.m_month > rhs.m_month)
289 return 1;
290 if (lhs.m_month < rhs.m_month)
291 return -1;
292 if (lhs.m_day > rhs.m_day)
293 return 1;
294 if (lhs.m_day < rhs.m_day)
295 return -1;
296 return 0;
297}
298
299Date Date::NextDay() const {
300 Date result(*this);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected