메소드 | 설명 | |
---|---|---|
__construct ( |
Constructor. | |
diffForHumans ( Cake\Chronos\ChronosInterface $date, Cake\Chronos\ChronosInterface $other = null, boolean $absolute = false ) : string | Get the difference in a human readable format. |
public __construct ( |
||
$translate | The text translator object. |
public diffForHumans ( Cake\Chronos\ChronosInterface $date, Cake\Chronos\ChronosInterface $other = null, boolean $absolute = false ) : string | ||
$date | Cake\Chronos\ChronosInterface | The datetime to start with. |
$other | Cake\Chronos\ChronosInterface | The datetime to compare against. |
$absolute | boolean | removes time difference modifiers ago, after, etc |
리턴 | string | The difference between the two days in a human readable format |