MCPcopy Create free account
hub / github.com/apache/arrow / IsTimeInRange

Function IsTimeInRange

cpp/src/arrow/util/formatting.h:412–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

410
411template <typename Unit>
412bool IsTimeInRange(Unit duration) {
413 constexpr Unit kMinIncl = std::chrono::duration_cast<Unit>(std::chrono::seconds{0});
414 constexpr Unit kMaxExcl = std::chrono::duration_cast<Unit>(std::chrono::seconds{86400});
415 return duration >= kMinIncl && duration < kMaxExcl;
416}
417
418template <typename RawValue, typename Appender>
419Return<Appender> FormatOutOfRange(RawValue&& raw_value, Appender&& append) {

Callers 1

operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected