Skip to content

Commit 2eeafd1

Browse files
Revert "Returns SMF\TimeInterval objects from SMF\Time::diff()"
This reverts commit 2841c29.
1 parent 3effc6d commit 2eeafd1

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

Sources/Time.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -439,18 +439,6 @@ public function __isset(string $prop): bool
439439
}
440440
}
441441

442-
/**
443-
* Like \DateTime::diff(), but returns a TimeInterval object.
444-
*
445-
* @param \DateTimeInterface $target The date to compare to.
446-
* @param bool $absolute Whether to force the interval to be positive.
447-
* @return TimeInterval The difference between the two dates.
448-
*/
449-
public function diff(\DateTimeInterface $target, bool $absolute = false): TimeInterval
450-
{
451-
return TimeInterval::createFromDateInterval(parent::diff($target, $absolute));
452-
}
453-
454442
/**
455443
* Like DateTime::format(), except that it can accept either DateTime format
456444
* specifiers or strftime format specifiers (but not both at once).

0 commit comments

Comments
 (0)