MCPcopy Create free account
hub / github.com/catboost/catboost / CompareTM

Function CompareTM

util/datetime/base_ut.cpp:168–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166 }
167
168 inline bool CompareTM(const struct tm& a, const struct tm& b) {
169 return (
170 a.tm_sec == b.tm_sec &&
171 a.tm_min == b.tm_min &&
172 a.tm_hour == b.tm_hour &&
173 a.tm_mday == b.tm_mday &&
174 a.tm_mon == b.tm_mon &&
175 a.tm_year == b.tm_year &&
176 a.tm_wday == b.tm_wday &&
177 a.tm_yday == b.tm_yday);
178 }
179
180 static inline TString Str(const struct tm& a) {
181 return TStringBuilder() << "("

Callers 2

Y_UNIT_TESTFunction · 0.85
CompareTMFullFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected