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

Function GetHours

runtime/standard/time_functions.cc:135–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135Value GetHours(absl::Time timestamp, absl::string_view tz) {
136 return GetTimeBreakdownPart(timestamp, tz,
137 [](const absl::TimeZone::CivilInfo& breakdown) {
138 return breakdown.cs.hour();
139 });
140}
141
142Value GetMinutes(absl::Time timestamp, absl::string_view tz) {
143 return GetTimeBreakdownPart(timestamp, tz,

Callers 1

Calls 1

GetTimeBreakdownPartFunction · 0.85

Tested by

no test coverage detected