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

Function GetTimeOfDay

eval/public/extension_func_registrar.cc:93–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93CelValue GetTimeOfDay(Arena* arena, absl::Time time_stamp,
94 absl::string_view time_zone) {
95 absl::TimeZone time_zonetz;
96
97 if (!absl::LoadTimeZone(time_zone, &time_zonetz)) {
98 return CreateErrorValue(arena, "String to Timezone conversion failed",
99 absl::StatusCode::kInvalidArgument);
100 }
101
102 return GetTimeOfDayTz(arena, time_stamp, time_zonetz);
103}
104
105CelValue GetTimeOfDayUTC(Arena* arena, absl::Time time_stamp) {
106 absl::TimeZone utc = absl::UTCTimeZone();

Callers 1

Calls 2

CreateErrorValueFunction · 0.85
GetTimeOfDayTzFunction · 0.85

Tested by

no test coverage detected