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

Method TimestampOrDie

eval/public/cel_value.h:329–331  ·  view source on GitHub ↗

Returns stored timestamp value. Fails if stored value type is not timestamp.

Source from the content-addressed store, hash-verified

327 // Returns stored timestamp value.
328 // Fails if stored value type is not timestamp.
329 const absl::Time TimestampOrDie() const {
330 return GetValueOrDie<absl::Time>(Type::kTimestamp);
331 }
332
333 // Returns stored const CelList* value.
334 // Fails if stored value type is not const CelList*.

Callers 10

TEST_FFunction · 0.80
ExportAsProtoValueFunction · 0.80
CelValueToValueFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
AnyFromValueFunction · 0.80
TEST_FFunction · 0.80
HomogenousCelValueEqualFunction · 0.80
ModernValueFunction · 0.80
FromLegacyValueFunction · 0.80

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TEST_FFunction · 0.64