comments
This commit is contained in:
@@ -167,6 +167,9 @@ class Date implements DateTimeable
|
||||
return self::fromDateTime($dateTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* A difference between another object (date or date-time) and self.
|
||||
*/
|
||||
public function diff(DateTimeable $other): DateInterval
|
||||
{
|
||||
return $this->getDateTime()->diff($other->getDateTime());
|
||||
|
||||
@@ -199,6 +199,9 @@ class DateTime implements DateTimeable
|
||||
return self::fromDateTime($dateTime);
|
||||
}
|
||||
|
||||
/**
|
||||
* A difference between another object (date or date-time) and self.
|
||||
*/
|
||||
public function diff(DateTimeable $other): DateInterval
|
||||
{
|
||||
return $this->getDateTime()->diff($other->getDateTime());
|
||||
|
||||
@@ -262,6 +262,9 @@ class DateTimeOptional implements DateTimeable
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* A difference between another object (date or date-time) and self.
|
||||
*/
|
||||
public function diff(DateTimeable $other): DateInterval
|
||||
{
|
||||
return $this->getDateTime()->diff($other->getDateTime());
|
||||
|
||||
Reference in New Issue
Block a user