MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / BetweenTs

Function BetweenTs

eval/public/extension_func_registrar.cc:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24using google::protobuf::Arena;
25
26CelValue BetweenTs(Arena* arena, absl::Time time_stamp, absl::Time start,
27 absl::Time stop) {
28 bool is_between = false;
29 // check if timestamp paremeter is between start and stop parameters
30 is_between = (start <= time_stamp) && (time_stamp < stop);
31 return CelValue::CreateBool(is_between);
32}
33
34CelValue BetweenStr(Arena* arena, absl::Time time_stamp,
35 absl::string_view start, absl::string_view stop) {

Callers 2

BetweenStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected