Cake\Chronos\ChronosInterface::diffForHumans PHP Method

diffForHumans() public method

When comparing a value in the past to default now: 1 hour ago 5 months ago When comparing a value in the future to default now: 1 hour from now 5 months from now When comparing a value in the past to another value: 1 hour before 5 months before When comparing a value in the future to another value: 1 hour after 5 months after
public diffForHumans ( Cake\Chronos\ChronosInterface $other = null, boolean $absolute = false ) : string
$other Cake\Chronos\ChronosInterface The datetime to compare with.
$absolute boolean Removes time difference modifiers ago, after, etc
return string
    public function diffForHumans(ChronosInterface $other = null, $absolute = false);
ChronosInterface