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

Function SafeTimestampValue

common/values/timestamp_value.h:128–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

126}
127
128inline absl::StatusOr<TimestampValue> SafeTimestampValue(absl::Time value) {
129 absl::Status status = internal::ValidateTimestamp(value);
130 if (!status.ok()) {
131 return status;
132 }
133 return UnsafeTimestampValue(value);
134}
135
136inline bool operator!=(TimestampValue lhs, TimestampValue rhs) {
137 return !operator==(lhs, rhs);

Callers

nothing calls this directly

Calls 3

ValidateTimestampFunction · 0.85
UnsafeTimestampValueFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected