public function average(ChronosInterface $dt = null) { $dt = $dt === null ? static::now($this->tz) : $dt; return $this->addSeconds((int) ($this->diffInSeconds($dt, false) / 2)); }