public function diff($from, $to = null) { $from = $this->getDatetimeObject($from); $to = $this->getDatetimeObject($to); return $this->formatter->formatDiff($from, $to); }