diffForHumans()
diffForHumans(\Cake\Chronos\ChronosInterface $date, \Cake\Chronos\ChronosInterface|null $other = null, boolean $absolute = false) : string
Get the difference in a human readable format.
Parameters
\Cake\Chronos\ChronosInterface | $date | The datetime to start with. |
\Cake\Chronos\ChronosInterface|null | $other | The datetime to compare against. |
boolean | $absolute | removes time difference modifiers ago, after, etc |
Returns
string —The difference between the two days in a human readable format