public function diffInMonths(ChronosInterface $dt = null, $abs = true) { $dt = $dt === null ? static::now($this->tz) : $dt; return $this->diffInYears($dt, $abs) * ChronosInterface::MONTHS_PER_YEAR + (int) $this->diff($dt, $abs)->format('%r%m'); }