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

Function EncodeTimeToString

internal/proto_time_encoding.cc:94–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94absl::StatusOr<std::string> EncodeTimeToString(absl::Time time) {
95 google::protobuf::Timestamp t;
96 auto status = EncodeTime(time, &t);
97 if (!status.ok()) {
98 return status;
99 }
100 return google::protobuf::util::TimeUtil::ToString(t);
101}
102
103} // namespace cel::internal

Callers 1

ValueFromValueFunction · 0.85

Calls 3

EncodeTimeFunction · 0.85
ToStringFunction · 0.50
okMethod · 0.45

Tested by

no test coverage detected