From 2eeafd16ffec15f0fdf9ad24a2098eb8689f1c59 Mon Sep 17 00:00:00 2001 From: Jon Stovell Date: Wed, 25 Dec 2024 22:38:17 -0700 Subject: [PATCH] Revert "Returns SMF\TimeInterval objects from SMF\Time::diff()" This reverts commit 2841c290b1dc11e19ba025df5a28701798594c10. --- Sources/Time.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Sources/Time.php b/Sources/Time.php index f094333bcf..0b028ec262 100644 --- a/Sources/Time.php +++ b/Sources/Time.php @@ -439,18 +439,6 @@ public function __isset(string $prop): bool } } - /** - * Like \DateTime::diff(), but returns a TimeInterval object. - * - * @param \DateTimeInterface $target The date to compare to. - * @param bool $absolute Whether to force the interval to be positive. - * @return TimeInterval The difference between the two dates. - */ - public function diff(\DateTimeInterface $target, bool $absolute = false): TimeInterval - { - return TimeInterval::createFromDateInterval(parent::diff($target, $absolute)); - } - /** * Like DateTime::format(), except that it can accept either DateTime format * specifiers or strftime format specifiers (but not both at once).