| 163 | |
| 164 | template <typename T, typename Arg0, typename Arg1> |
| 165 | T Call(KernelContext*, Arg0 arg0, Arg1 arg1, Status*) const { |
| 166 | year_month_day from_ymd( |
| 167 | floor<days>(localizer_.template ConvertTimePoint<Duration>(arg0))); |
| 168 | year_month_day to_ymd( |
| 169 | floor<days>(localizer_.template ConvertTimePoint<Duration>(arg1))); |
| 170 | int64_t from_quarters = GetQuarters(from_ymd); |
| 171 | int64_t to_quarters = GetQuarters(to_ymd); |
| 172 | return static_cast<T>(to_quarters - from_quarters); |
| 173 | } |
| 174 | |
| 175 | Localizer localizer_; |
| 176 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected