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

Function GetMilliseconds

runtime/standard/time_functions.cc:156–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156Value GetMilliseconds(absl::Time timestamp, absl::string_view tz) {
157 return GetTimeBreakdownPart(
158 timestamp, tz, [](const absl::TimeZone::CivilInfo& breakdown) {
159 return absl::ToInt64Milliseconds(breakdown.subsecond);
160 });
161}
162
163absl::Status RegisterTimestampFunctions(FunctionRegistry& registry,
164 const RuntimeOptions& options) {

Callers 1

Calls 1

GetTimeBreakdownPartFunction · 0.85

Tested by

no test coverage detected