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

Function GetMonth

runtime/standard/time_functions.cc:94–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94Value GetMonth(absl::Time timestamp, absl::string_view tz) {
95 return GetTimeBreakdownPart(timestamp, tz,
96 [](const absl::TimeZone::CivilInfo& breakdown) {
97 return breakdown.cs.month() - 1;
98 });
99}
100
101Value GetDayOfYear(absl::Time timestamp, absl::string_view tz) {
102 return GetTimeBreakdownPart(

Callers 1

Calls 1

GetTimeBreakdownPartFunction · 0.85

Tested by

no test coverage detected