/** * @param UUID|MWTimestamp|null $relativeTo * @param User|null $user * @param Language|null $lang * @return string|false * @throws InvalidInputException */ public function getHumanTimestamp($relativeTo = null, User $user = null, Language $lang = null) { if ($relativeTo instanceof UUID) { $rel = $relativeTo->getTimestampObj(); } elseif ($relativeTo instanceof MWTimestamp) { $rel = $relativeTo; } else { throw new InvalidInputException('Expected MWTimestamp or UUID, got ' . get_class($relativeTo), 'invalid-input'); } $ts = $this->getTimestampObj(); return $ts ? $ts->getHumanTimestamp($rel, $user, $lang) : false; }