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

Function GetFullYear

runtime/standard/time_functions.cc:87–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87Value GetFullYear(absl::Time timestamp, absl::string_view tz) {
88 return GetTimeBreakdownPart(timestamp, tz,
89 [](const absl::TimeZone::CivilInfo& breakdown) {
90 return breakdown.cs.year();
91 });
92}
93
94Value GetMonth(absl::Time timestamp, absl::string_view tz) {
95 return GetTimeBreakdownPart(timestamp, tz,

Callers 1

Calls 1

GetTimeBreakdownPartFunction · 0.85

Tested by

no test coverage detected