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

Method CreateTimestamp

eval/public/structs/cel_proto_wrapper.h:33–35  ·  view source on GitHub ↗

CreateTimestamp creates CelValue from a non-null protobuf timestamp value.

Source from the content-addressed store, hash-verified

31
32 // CreateTimestamp creates CelValue from a non-null protobuf timestamp value.
33 static CelValue CreateTimestamp(const google::protobuf::Timestamp* value) {
34 return CelValue(cel::internal::DecodeTime(*value));
35 }
36
37 // MaybeWrapValue attempts to wrap the input value in a proto message with
38 // the given type_name. If the value can be wrapped, it is returned as a

Callers

nothing calls this directly

Calls 2

CelValueClass · 0.85
DecodeTimeFunction · 0.85

Tested by

no test coverage detected