MCPcopy Create free account
hub / github.com/bytedance/bolt / validDate

Function validDate

bolt/type/TimestampConversion.cpp:181–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179 }
180 return true;
181}
182
183inline bool validDate(int64_t daysSinceEpoch) {
184 return daysSinceEpoch >= std::numeric_limits<int32_t>::min() &&
185 daysSinceEpoch <= std::numeric_limits<int32_t>::max();
186}
187

Callers 1

tryParseDateStringFunction · 0.85

Calls 2

minFunction · 0.70
maxFunction · 0.70

Tested by

no test coverage detected